Commit 942aba2e authored by yff's avatar yff

修改BUG

parent b9de1c7c
......@@ -861,7 +861,11 @@ public class GpfkServiceImpl extends BaseEditServiceImpl implements GpfkService
pcjhmxCondition.setWoid(woid);
List<PcjhmxVO> pcjhmxVOs = pcjhmxService.query(pcjhmxCondition).getRecords();
if(pcjhmxVOs!=null&&pcjhmxVOs.size()>0) {
for(PcjhmxVO pcjhmxVO:pcjhmxVOs) {
for(int i=0;i<pcjhmxVOs.size();i++) {
PcjhmxVO pcjhmxVO = pcjhmxVOs.get(i);
if((pcjhmxVO.getWgsl()<=0)) {
continue;
}
Pcjhmx pcjhmx = new Pcjhmx();
EntityDataFactory.copyEntity(pcjhmxVO, pcjhmx);
pcjhmx.setWgsl(pcjhmx.getWgsl()-1.0);
......
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