APP数据不一致修复
This commit is contained in:
parent
0a9bb04bb8
commit
1d07f0dc22
|
|
@ -411,8 +411,7 @@ public class PurchaseServiceImpl implements PurchaseService {
|
|||
outPlanVo.setAddress("无");
|
||||
// return ServerResponse.createErroe("请填写收获地址");
|
||||
}
|
||||
|
||||
List<OutPlanVoDetails> detailsList = outPlanVo.getDetailsList();
|
||||
List<OutPlanVoDetails> detailsList = JSON.parseArray(planApplyVo.getJsonData(), OutPlanVoDetails.class);
|
||||
|
||||
if (StringUtils.isEmpty(detailsList)) {
|
||||
return ServerResponse.createErroe("发货明细不能为空");
|
||||
|
|
@ -475,6 +474,9 @@ public class PurchaseServiceImpl implements PurchaseService {
|
|||
details.setLkNum(Integer.toString(lkNum));
|
||||
allCkNum += ckNum;
|
||||
allLkNum += lkNum;
|
||||
details.setDetailId(details.getId());
|
||||
//更新需求
|
||||
mapper.updatePlanDetails(details);
|
||||
}
|
||||
outPlanVo.setCgNum(allCkNum);
|
||||
outPlanVo.setLkNum(allLkNum);
|
||||
|
|
@ -511,8 +513,7 @@ public class PurchaseServiceImpl implements PurchaseService {
|
|||
if (succ != supInfoList.size()) {
|
||||
return ServerResponse.createErroe("新增失败数据异常,请稍后重试");
|
||||
}
|
||||
//更新需求
|
||||
mapper.updatePlanDetails(details);
|
||||
|
||||
//更新库存
|
||||
MaTypeVo maTypeVo = new MaTypeVo();
|
||||
maTypeVo.setModelId(details.getModelId());
|
||||
|
|
|
|||
|
|
@ -234,7 +234,7 @@
|
|||
</select>
|
||||
<select id="getOutApplyDetailsList" resultType="com.bonus.aqgqj.business.backstage.entity.OutPlanVoDetails">
|
||||
select id detailId,apply_id planId ,model_id modelid,need_num needNum,
|
||||
need_day needDay,type,`name`,model,unit
|
||||
need_day needDay,type,`name`,model,unit,lk_num lkNum
|
||||
from st_plan_details
|
||||
where apply_id=#{id}
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue