|
|
@@ -11,6 +11,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
import com.goafanti.admin.service.DepartmentService;
|
|
|
import com.goafanti.common.dao.*;
|
|
|
import com.goafanti.common.model.*;
|
|
|
+import com.goafanti.common.utils.OrderUtils;
|
|
|
import com.goafanti.order.service.*;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFCell;
|
|
|
import org.apache.poi.xssf.usermodel.XSSFRow;
|
|
|
@@ -108,6 +109,7 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
|
|
|
private OrderProjectService orderProjectService;
|
|
|
|
|
|
|
|
|
+
|
|
|
@Override
|
|
|
public int addOrderChange(NewOrderChangeBo t,String startRemarks) {
|
|
|
TOrderNew ton=new TOrderNew();
|
|
|
@@ -764,6 +766,8 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
|
|
|
userMidMapper.updateByUid(um);
|
|
|
//如果合同不是空,则修改合同
|
|
|
if (nob.getContractPictureUrl()!=null)o.setContractPictureUrl(nob.getContractPictureUrl());
|
|
|
+ //清算状态 0-首付待付请,1-尾款待付清,2-已付请,3-部分退款,4-全部退款
|
|
|
+ o.setLiquidationStatus(OrderUtils.getLiquidationStatus(o));
|
|
|
tOrderNewMapper.updateByPrimaryKeySelective(o);
|
|
|
tOrderMidMapper.updateCountProjectAndType(o.getOrderNo());
|
|
|
return o;
|
|
|
@@ -771,6 +775,8 @@ public class OrderChangeServiceImpl extends BaseMybatisDao<NewOrderChangeMapper>
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
private void pushTaskAndDun(Integer id,TOrderNew o) {
|
|
|
List<TChangeTaskOut> listct=tChangeTaskMapper.selectByCid(id,3);
|
|
|
HashMap<Integer, Integer> map=changeAddOrderTask(listct,null);
|