Browse Source

财务列表新增相关字段

anderx 3 years ago
parent
commit
f557909069

+ 8 - 0
src/main/java/com/goafanti/order/service/impl/OutsourceOrgServiceImpl.java

@@ -10,6 +10,7 @@ import java.util.Map;
 import com.goafanti.common.dao.*;
 import com.goafanti.common.model.*;
 import com.goafanti.order.bo.*;
+import com.goafanti.organization.bo.ProjectTypePuls;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -228,6 +229,13 @@ public class OutsourceOrgServiceImpl  extends BaseMybatisDao<TOrderOutsourceMapp
 		TOrderOutsource tto2=new  TOrderOutsource();
 		tto2.setId(id);
 		tto2.setRefundStatus(2);
+		TTaskMid ttm=new TTaskMid();
+		ttm.setTid(tto.getTid());
+		ttm.setCostAmount(new BigDecimal(0));
+		ttm.setPartyAmount(new BigDecimal(0));
+		tTaskMidMapper.updateByTid(ttm);
+		ProjectTypePuls typePuls = tOrderTaskMapper.selectByTidGetDtails(tto.getTid());
+		tOrderMidMapper.updateCostAmount(typePuls.getOrderNo());
 		return tOrderOutsourceMapper.updateByPrimaryKeySelective(tto2);
 	}