|
@@ -57,6 +57,26 @@ public class StockJournalDetailsServiceImpl extends ServiceImpl<StockJournalDeta
|
|
|
wrapper.eq("sjd.company_id", dto.getCompanyId());
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ Integer isRestitution = dto.getIsRestitution();
|
|
|
+ if (ObjectUtil.isNotEmpty(isRestitution)) {
|
|
|
+ if (ObjectUtil.equals(isRestitution, 0)) {
|
|
|
+ wrapper.isNull("sj.restitution_id");
|
|
|
+ } else {
|
|
|
+ wrapper.isNotNull("sj.restitution_id");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ Integer isSeek = dto.getIsSeek();
|
|
|
+ if (ObjectUtil.isNotEmpty(isSeek)) {
|
|
|
+ if (ObjectUtil.equals(isSeek, 0)) {
|
|
|
+ wrapper.isNull("sj.seek_id");
|
|
|
+ } else {
|
|
|
+ wrapper.isNotNull("sj.seek_id");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
Page<StockJournalDetailsVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
List<StockJournalDetailsVo> records = page.getRecords();
|
|
|
if (ObjectUtil.isEmpty(records)) {
|