|
@@ -313,8 +313,13 @@ public class BillSubsidyServiceImpl extends ServiceImpl<BillSubsidyMapper, BillS
|
|
|
billSubsidy.setCreateTime(DateTime.now());
|
|
|
billSubsidy.setCreateUser(id);
|
|
|
Integer count = billBuyInfoMapper.selectCount(new QueryWrapper<BillBuyInfo>().eq("inspection_num", billSubsidy.getInspectionNum()));
|
|
|
- BillLandingInspection billLandingInspection = billLandingInspectionMapper.selectOne(new QueryWrapper<BillLandingInspection>().eq("inspection_num", billSubsidy.getInspectionNum()));
|
|
|
+
|
|
|
+ BillLandingInspection billLandingInspection = billLandingInspectionMapper.selectOne(new QueryWrapper<BillLandingInspection>()
|
|
|
+ .eq("inspection_num", billSubsidy.getInspectionNum())
|
|
|
+ .ne("inspection_type",0)
|
|
|
+ .eq("inspection_sch",4));
|
|
|
Integer userType = sysUserMapper.selectOne(new QueryWrapper<SysUser>().eq("id", billLandingInspection.getCreateUser())).getUserType();
|
|
|
+
|
|
|
if (count != 0 && userType == 2){
|
|
|
billSubsidy.setSaleName(billLandingInspection.getCargoOwner());
|
|
|
}
|