|
@@ -22,6 +22,9 @@ import org.springframework.stereotype.Service;
|
|
|
@Service
|
|
|
public class ZhcxProjectRectifyServiceImpl extends ServiceImpl<ZhcxProjectRectifyDao, ZhcxProjectRectifyDo> implements ZhcxProjectRectifyService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ZhcxProjectRectifyDao dao;
|
|
|
+
|
|
|
@Autowired
|
|
|
private ZhcxProjectRectifyMachineService rectifyMachineService;
|
|
|
|
|
@@ -32,16 +35,12 @@ public class ZhcxProjectRectifyServiceImpl extends ServiceImpl<ZhcxProjectRectif
|
|
|
*/
|
|
|
@Override
|
|
|
public void delByPrjId(String prjId) {
|
|
|
-
|
|
|
+ //物理删除
|
|
|
//删除明细
|
|
|
- LambdaQueryWrapper<ZhcxProjectRectifyMachineDo> delWrapper = Wrappers.lambdaQuery();
|
|
|
- delWrapper.eq(ZhcxProjectRectifyMachineDo::getPrjid, prjId)
|
|
|
- .eq(ZhcxProjectRectifyMachineDo::getDeleted,"0");
|
|
|
- rectifyMachineService.remove(delWrapper);
|
|
|
+ rectifyMachineService.deleteByPrjId(prjId);
|
|
|
|
|
|
- LambdaQueryWrapper<ZhcxProjectRectifyDo> delWrapper2 = Wrappers.lambdaQuery();
|
|
|
- delWrapper2.eq(ZhcxProjectRectifyDo::getPrjid, prjId)
|
|
|
- .eq(ZhcxProjectRectifyDo::getDeleted, "0");
|
|
|
- remove(delWrapper2);
|
|
|
+ ZhcxProjectRectifyMachineDo machineDo = new ZhcxProjectRectifyMachineDo();
|
|
|
+ machineDo.setPrjid(prjId);
|
|
|
+ dao.deleteByProjectId(machineDo);
|
|
|
}
|
|
|
}
|