Commit 8af8a45a authored by chenzhao's avatar chenzhao

XIUGAIBUG

parent a7355ff8
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
and hygf_work_order.region_company_id =#{map.regionCompanyId} and hygf_work_order.region_company_id =#{map.regionCompanyId}
</if> </if>
<if test="map.powerStationCode!=null and map.powerStationCode!=''"> <if test="map.powerStationCode!=null and map.powerStationCode!=''">
and hph.peasant_household_no like concat('%',#{map.powerStationCode},'%'} and hph.peasant_household_no like concat('%',#{map.powerStationCode},'%')
</if> </if>
<if test="map.formType != null and map.formType!=''"> <if test="map.formType != null and map.formType!=''">
AND hbga.acceptance_check_status IN ('2', '3', '4') AND hbga.acceptance_check_status IN ('2', '3', '4')
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
and hygf_work_order.region_company_id =#{map.regionCompanyId} and hygf_work_order.region_company_id =#{map.regionCompanyId}
</if> </if>
<if test="map.powerStationCode!=null and map.powerStationCode!=''"> <if test="map.powerStationCode!=null and map.powerStationCode!=''">
and hph.peasant_household_no like concat('%',#{map.powerStationCode},'%'} and hph.peasant_household_no like concat('%',#{map.powerStationCode},'%')
</if> </if>
<if test="map.formType != null and map.formType!=''"> <if test="map.formType != null and map.formType!=''">
AND hbga.grid_status IN ('2', '3', '4') AND hbga.grid_status IN ('2', '3', '4')
......
...@@ -339,7 +339,20 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A ...@@ -339,7 +339,20 @@ public class AcceptanceCheckServiceImpl extends BaseService<AcceptanceCheckDto,A
public ResponseModel addRectification(HygfRectificationOrder hygfRectificationOrder) { public ResponseModel addRectification(HygfRectificationOrder hygfRectificationOrder) {
if (Objects.isNull( hygfRectificationOrder.getRectificationSource()) ){
return CommonResponseNewUtil.failureMessage("多角色用户发起整改单,发起人角色不可为空");
}
if (hygfRectificationOrder.getAddorSubmit().equals("0") && Objects.isNull(hygfRectificationOrder.getRectificationIdea())){
return CommonResponseNewUtil.failureMessage("整改类型及整改项不可为空");
}
// if (hygfRectificationOrder.getAddorSubmit().equals("0") && !Objects.isNull(hygfRectificationOrder.getRectificationIdea())){
// List<Object> rectificationIdea = hygfRectificationOrder.getRectificationIdea();
// for (Object item : rectificationIdea) {
// item.
// }
//
// return CommonResponseNewUtil.failureMessage("整改类型及整改项不可为空");
// }
if (hygfRectificationOrder.getSequenceNbr() != null ){ if (hygfRectificationOrder.getSequenceNbr() != null ){
LambdaQueryWrapper<HygfRectificationOrder> wr= new LambdaQueryWrapper<>(); LambdaQueryWrapper<HygfRectificationOrder> wr= new LambdaQueryWrapper<>();
wr.eq(HygfRectificationOrder::getPeasantHouseholeId,hygfRectificationOrder.getPeasantHouseholeId()); wr.eq(HygfRectificationOrder::getPeasantHouseholeId,hygfRectificationOrder.getPeasantHouseholeId());
......
...@@ -627,7 +627,12 @@ public class BasicGridAcceptanceServiceImpl ...@@ -627,7 +627,12 @@ public class BasicGridAcceptanceServiceImpl
public ResponseModel addRectification(HygfRectificationOrder hygfRectificationOrder) { public ResponseModel addRectification(HygfRectificationOrder hygfRectificationOrder) {
if (Objects.isNull( hygfRectificationOrder.getRectificationSource()) ){
return CommonResponseNewUtil.failureMessage("多角色用户发起整改单,发起人角色不可为空");
}
if (hygfRectificationOrder.getAddorSubmit().equals("0") && Objects.isNull(hygfRectificationOrder.getRectificationIdea())){
return CommonResponseNewUtil.failureMessage("整改类型及整改项不可为空");
}
if (hygfRectificationOrder.getSequenceNbr() != null ){ if (hygfRectificationOrder.getSequenceNbr() != null ){
LambdaQueryWrapper<HygfRectificationOrder> wr= new LambdaQueryWrapper<>(); LambdaQueryWrapper<HygfRectificationOrder> wr= new LambdaQueryWrapper<>();
wr.eq(HygfRectificationOrder::getPeasantHouseholeId,hygfRectificationOrder.getPeasantHouseholeId()); wr.eq(HygfRectificationOrder::getPeasantHouseholeId,hygfRectificationOrder.getPeasantHouseholeId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment