|
|
@ -8,6 +8,7 @@ import java.util.Map; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
import com.hxhq.business.domain.ZcgTz; |
|
|
import com.hxhq.business.domain.ZcgTz; |
|
|
|
|
|
import com.hxhq.business.dto.zcg.ZcgDto; |
|
|
import com.hxhq.business.enums.zykgl.JyztEnum; |
|
|
import com.hxhq.business.enums.zykgl.JyztEnum; |
|
|
import com.hxhq.business.enums.zykgl.zcgJyztEnum; |
|
|
import com.hxhq.business.enums.zykgl.zcgJyztEnum; |
|
|
import com.hxhq.business.form.zcg.YsffForm; |
|
|
import com.hxhq.business.form.zcg.YsffForm; |
|
|
@ -45,8 +46,9 @@ public class ZcgServiceImpl extends ServiceImpl implements IZcgS |
|
|
* @return 暂存柜 |
|
|
* @return 暂存柜 |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public List<Zcg> queryList(ZcgSearchForm form) { |
|
|
|
|
|
|
|
|
public List<ZcgDto> queryList(ZcgSearchForm form) { |
|
|
QueryWrapper<Zcg> queryWrapper = Wrappers.query(); |
|
|
QueryWrapper<Zcg> queryWrapper = Wrappers.query(); |
|
|
|
|
|
queryWrapper.eq("t.del_flag", "0"); |
|
|
if (form.getZt() != null && form.getZt().intValue() > 0) { |
|
|
if (form.getZt() != null && form.getZt().intValue() > 0) { |
|
|
queryWrapper.eq("t.zt", form.getZt()); |
|
|
queryWrapper.eq("t.zt", form.getZt()); |
|
|
} |
|
|
} |
|
|
@ -56,6 +58,7 @@ public class ZcgServiceImpl extends ServiceImpl implements IZcgS |
|
|
if (form.getJyrId() != null && form.getJyrId().intValue() > 0) { |
|
|
if (form.getJyrId() != null && form.getJyrId().intValue() > 0) { |
|
|
queryWrapper.and(p -> p.eq("t.`lqr1_id`", form.getJyrId()).or().eq("t.`lqr2_id`", form.getJyrId())); |
|
|
queryWrapper.and(p -> p.eq("t.`lqr1_id`", form.getJyrId()).or().eq("t.`lqr2_id`", form.getJyrId())); |
|
|
} |
|
|
} |
|
|
|
|
|
queryWrapper.orderByDesc("t.create_time"); |
|
|
return baseMapper.queryList(queryWrapper); |
|
|
return baseMapper.queryList(queryWrapper); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -136,11 +139,11 @@ public class ZcgServiceImpl extends ServiceImpl implements IZcgS |
|
|
@Override |
|
|
@Override |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
public void ysghBatch(YsghForm form) { |
|
|
public void ysghBatch(YsghForm form) { |
|
|
if (StringUtils.isBlank(form.getIds())) { |
|
|
|
|
|
|
|
|
if (form.getIds().length<0) { |
|
|
throw new SecurityException("参数ids不正确"); |
|
|
throw new SecurityException("参数ids不正确"); |
|
|
} |
|
|
} |
|
|
QueryWrapper<Zcg> queryWrapper = Wrappers.query(); |
|
|
QueryWrapper<Zcg> queryWrapper = Wrappers.query(); |
|
|
queryWrapper.in("id", form.getIds().split(",")); |
|
|
|
|
|
|
|
|
queryWrapper.in("id", form.getIds()); |
|
|
List<Zcg> zcgList = this.list(queryWrapper); |
|
|
List<Zcg> zcgList = this.list(queryWrapper); |
|
|
List<ZcgTz> zcgTzList = new ArrayList<>(); |
|
|
List<ZcgTz> zcgTzList = new ArrayList<>(); |
|
|
if (zcgList.size() > 0) { |
|
|
if (zcgList.size() > 0) { |
|
|
|