anderx лет назад: 5
Родитель
Сommit
d695cda95f

+ 1 - 1
GeneratorConfig.xml

@@ -9,6 +9,6 @@
     <javaModelGenerator targetPackage="com.goafanti.common.model" targetProject="kede-server" />
     <sqlMapGenerator targetPackage="com.goafanti.common.mapper" targetProject="kede-server" />
     <javaClientGenerator  targetPackage="com.goafanti.common.dao"  type="XMLMAPPER" targetProject="kede-server"  />
-    <table schema="aft" tableName="t_order_new"/>
+    <table schema="aft" tableName="t_order_task"/>
   </context>
 </generatorConfiguration>

+ 78 - 78
src/main/java/com/goafanti/common/dao/TOrderOutsourceMapper.java

@@ -1,79 +1,79 @@
-package com.goafanti.common.dao;
-
-import com.goafanti.common.model.TOrderOutsource;
-import com.goafanti.common.model.TOrderOutsourceExample;
-import com.goafanti.order.bo.OrderOutsourceDtails;
-
-import java.util.List;
-import org.apache.ibatis.annotations.Param;
-
-public interface TOrderOutsourceMapper {
-    /**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	long countByExample(TOrderOutsourceExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	int deleteByExample(TOrderOutsourceExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	int deleteByPrimaryKey(Integer id);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	int insert(TOrderOutsource record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	int insertSelective(TOrderOutsource record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	List<TOrderOutsource> selectByExample(TOrderOutsourceExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	TOrderOutsource selectByPrimaryKey(Integer id);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	int updateByExampleSelective(@Param("record") TOrderOutsource record,
-			@Param("example") TOrderOutsourceExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	int updateByExample(@Param("record") TOrderOutsource record, @Param("example") TOrderOutsourceExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	int updateByPrimaryKeySelective(TOrderOutsource record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	int updateByPrimaryKey(TOrderOutsource record);
-
-	OrderOutsourceDtails selectByOrderNo(String orderNo);
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TOrderOutsource;
+import com.goafanti.common.model.TOrderOutsourceExample;
+import com.goafanti.order.bo.OrderOutsourceDtails;
+
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface TOrderOutsourceMapper {
+    /**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	long countByExample(TOrderOutsourceExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	int deleteByExample(TOrderOutsourceExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	int deleteByPrimaryKey(Integer id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	int insert(TOrderOutsource record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	int insertSelective(TOrderOutsource record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	List<TOrderOutsource> selectByExample(TOrderOutsourceExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	TOrderOutsource selectByPrimaryKey(Integer id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	int updateByExampleSelective(@Param("record") TOrderOutsource record,
+			@Param("example") TOrderOutsourceExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	int updateByExample(@Param("record") TOrderOutsource record, @Param("example") TOrderOutsourceExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	int updateByPrimaryKeySelective(TOrderOutsource record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_outsource
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	int updateByPrimaryKey(TOrderOutsource record);
+
+	OrderOutsourceDtails selectByOrderNo(String orderNo);
 }

+ 111 - 111
src/main/java/com/goafanti/common/dao/TOrderTaskMapper.java

@@ -1,112 +1,112 @@
-package com.goafanti.common.dao;
-
-import com.goafanti.common.model.TOrderTask;
-import com.goafanti.common.model.TOrderTaskExample;
-import com.goafanti.order.bo.TOrderTaskBo;
-import com.goafanti.order.bo.TOrderTaskDetailBo;
-
-import java.util.Collection;
-import java.util.List;
-import org.apache.ibatis.annotations.Param;
-
-public interface TOrderTaskMapper {
-    /**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	long countByExample(TOrderTaskExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int deleteByExample(TOrderTaskExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int deleteByPrimaryKey(Integer id);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int insert(TOrderTask record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int insertSelective(TOrderTask record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	List<TOrderTask> selectByExampleWithBLOBs(TOrderTaskExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	List<TOrderTask> selectByExample(TOrderTaskExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	TOrderTask selectByPrimaryKey(Integer id);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int updateByExampleSelective(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int updateByExampleWithBLOBs(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int updateByExample(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int updateByPrimaryKeySelective(TOrderTask record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int updateByPrimaryKeyWithBLOBs(TOrderTask record);
-
-	/**
-	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
-	 * @mbg.generated  Wed Nov 20 10:18:39 CST 2019
-	 */
-	int updateByPrimaryKey(TOrderTask record);
-
-	List<TOrderTaskBo> selectOrderTask(String orderNo);
-
-	TOrderTaskDetailBo getOrderTaskDetail(String id);
-
-	TOrderTask selectBySuperId(String superId);
-	
-	List<TOrderTask> getReceiverByOid(String oid);
-
-	void updateDimissionTransfer(@Param("aid")String aid, @Param("transferId")String transferId, @Param("type")Integer type);
-
-	String selectEstimateCost(String orderNo);
-
-	List<String> listNameByDepAndName(@Param("orderNo")String orderNo, @Param("type")Integer type);
-
-
+package com.goafanti.common.dao;
+
+import com.goafanti.common.model.TOrderTask;
+import com.goafanti.common.model.TOrderTaskExample;
+import com.goafanti.order.bo.TOrderTaskBo;
+import com.goafanti.order.bo.TOrderTaskDetailBo;
+
+import java.util.Collection;
+import java.util.List;
+import org.apache.ibatis.annotations.Param;
+
+public interface TOrderTaskMapper {
+    /**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	long countByExample(TOrderTaskExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int deleteByExample(TOrderTaskExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int deleteByPrimaryKey(Integer id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int insert(TOrderTask record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int insertSelective(TOrderTask record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	List<TOrderTask> selectByExampleWithBLOBs(TOrderTaskExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	List<TOrderTask> selectByExample(TOrderTaskExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	TOrderTask selectByPrimaryKey(Integer id);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int updateByExampleSelective(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int updateByExampleWithBLOBs(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int updateByExample(@Param("record") TOrderTask record, @Param("example") TOrderTaskExample example);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int updateByPrimaryKeySelective(TOrderTask record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int updateByPrimaryKeyWithBLOBs(TOrderTask record);
+
+	/**
+	 * This method was generated by MyBatis Generator. This method corresponds to the database table t_order_task
+	 * @mbg.generated  Thu Mar 05 14:35:19 CST 2020
+	 */
+	int updateByPrimaryKey(TOrderTask record);
+
+	List<TOrderTaskBo> selectOrderTask(String orderNo);
+
+	TOrderTaskDetailBo getOrderTaskDetail(String id);
+
+	TOrderTask selectBySuperId(String superId);
+	
+	List<TOrderTask> getReceiverByOid(String oid);
+
+	void updateDimissionTransfer(@Param("aid")String aid, @Param("transferId")String transferId, @Param("type")Integer type);
+
+	String selectEstimateCost(String orderNo);
+
+	List<String> listNameByDepAndName(@Param("orderNo")String orderNo, @Param("type")Integer type);
+
+
 }

+ 102 - 99
src/main/java/com/goafanti/common/enums/NoticeStatus.java

@@ -1,99 +1,102 @@
-package com.goafanti.common.enums;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.commons.lang3.StringUtils;
-
-import com.goafanti.order.enums.OrderDunSubject;
-
-public enum NoticeStatus {
-	PATENTINFO(1, "专利申请管理"),
-	COGNIZANCE(2, "高企认定管理"),
-	COPYRIGHT(3, "软著申请管理"),
-	TECHPROJECT(4, "科技项目申报管理"),
-	PERSONALCERTIFY(5, "个人用户认证审核"),
-	ORGANIZATIONCERTIFY(6, "团体组织用户认证审核"),
-	CONTRACT(7, "合同管理"),
-	PERSONALDEMAND(8, "个人用户科技需求管理"),
-	ORGANIZATIONDEMAND(9, "团体组织用户需求管理"),
-	PERSONALACHIEVEMENTT(10, "个人用户科技需求管理"),
-	ORGANIZATIONACHIEVEMENT(11, "组织用户科技成果管理"),
-	ORDER_CHANGE_ADD(12,"订单变更信息添加"),
-	ORDER_CHANGE_UDPATE(13,"订单变更信息修改"),
-	ORDER_DUN(14,"订单催款信息"),
-	ORDER_BACK(15,"订单驳回信息"),
-	ORDER_REFUND(16,"订单退单同意信息"),
-	ORDER_BONUS(17,"奖金信息"),
-	ORDER_REFUND_REFUSE(18,"退单拒绝信息"),
-	ORDER_CHANGE_START(19,"订单变更发起"),
-	ORDER_CHANGE_YES(20,"订单变更通过"),
-	ORDER_CHANGE_NO(21,"订单变更驳回"),
-	ORDER_CHANGE_END(22,"订单变更完成"),
-	ORDER_INVPICE_START(23,"订单开票发起"),
-	ORDER_INVPICE_YES(24,"订单开票通过"),
-	ORDER_INVPICE_NO(25,"订单开票驳回"),
-	ORDER_INVPICE_APPROVA_YES(26,"订单开票特批通过"),
-	ORDER_INVPICE_APPROVA_NO(27,"订单开票特批驳回"),
-	ORDER_INVPICE_END(28,"订单开票完成"),
-	ORDER_START(29,"订单审核发起"),
-	ORDER_APPROVA_YES(30,"订单特批通过"),
-	ORDER_APPROVA_NO(31,"订单特批驳回"),
-	ORDER_OUTSOURCE_YES(32,"订单外包通过"),
-	ORDER_OUTSOURCE_NO(33,"订单外包驳回"),
-	ORDER_YES(34,"订单审核通过"),
-	ORDER_NO(35,"订单审核驳回"),
-	ORDER_TASK_TO(36,"项目任务分配"),
-	OTHER(0, "其他");
-
-	private NoticeStatus(Integer code, String desc) {
-		this.code = code;
-		this.desc = desc;
-	}
-
-	private static Map<Integer, NoticeStatus> status = new HashMap<Integer, NoticeStatus>();
-
-	static {
-		for (NoticeStatus value : NoticeStatus.values()) {
-			status.put(value.getCode(), value);
-		}
-	}
-	public static String getValueByCode(Integer code){
-        for(NoticeStatus oticeStatus:NoticeStatus.values()){
-            if(code.equals(oticeStatus.getCode())){
-                return oticeStatus.getDesc();
-            }
-        }
-        return  null;
-    }
-
-	public static NoticeStatus getStatus(Integer code) {
-		if (containsType(code)) {
-			return status.get(code);
-		}
-		return OTHER;
-	}
-
-	public static NoticeStatus getStatus(String code) {
-		if (StringUtils.isNumeric(code)) {
-			return getStatus(Integer.parseInt(code));
-		}
-		return OTHER;
-	}
-
-	public static boolean containsType(Integer code) {
-		return status.containsKey(code);
-	}
-
-	private Integer	code;
-	private String	desc;
-
-	public Integer getCode() {
-		return code;
-	}
-
-	public String getDesc() {
-		return desc;
-	}
-
-}
+package com.goafanti.common.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang3.StringUtils;
+
+import com.goafanti.order.enums.OrderDunSubject;
+
+public enum NoticeStatus {
+	PATENTINFO(1, "专利申请管理"),
+	COGNIZANCE(2, "高企认定管理"),
+	COPYRIGHT(3, "软著申请管理"),
+	TECHPROJECT(4, "科技项目申报管理"),
+	PERSONALCERTIFY(5, "个人用户认证审核"),
+	ORGANIZATIONCERTIFY(6, "团体组织用户认证审核"),
+	CONTRACT(7, "合同管理"),
+	PERSONALDEMAND(8, "个人用户科技需求管理"),
+	ORGANIZATIONDEMAND(9, "团体组织用户需求管理"),
+	PERSONALACHIEVEMENTT(10, "个人用户科技需求管理"),
+	ORGANIZATIONACHIEVEMENT(11, "组织用户科技成果管理"),
+	ORDER_CHANGE_ADD(12,"订单变更信息添加"),
+	ORDER_CHANGE_UDPATE(13,"订单变更信息修改"),
+	ORDER_DUN(14,"订单催款信息"),
+	ORDER_BACK(15,"订单驳回信息"),
+	ORDER_REFUND(16,"订单退单同意信息"),
+	ORDER_BONUS(17,"奖金信息"),
+	ORDER_REFUND_REFUSE(18,"退单拒绝信息"),
+	ORDER_CHANGE_START(19,"订单变更发起"),
+	ORDER_CHANGE_YES(20,"订单变更通过"),
+	ORDER_CHANGE_NO(21,"订单变更驳回"),
+	ORDER_CHANGE_END(22,"订单变更完成"),
+	ORDER_INVPICE_START(23,"订单开票发起"),
+	ORDER_INVPICE_YES(24,"订单开票通过"),
+	ORDER_INVPICE_NO(25,"订单开票驳回"),
+	ORDER_INVPICE_APPROVA_YES(26,"订单开票特批通过"),
+	ORDER_INVPICE_APPROVA_NO(27,"订单开票特批驳回"),
+	ORDER_INVPICE_END(28,"订单开票完成"),
+	ORDER_START(29,"订单审核发起"),
+	ORDER_APPROVA_YES(30,"订单特批通过"),
+	ORDER_APPROVA_NO(31,"订单特批驳回"),
+	ORDER_OUTSOURCE_YES(32,"订单外包通过"),
+	ORDER_OUTSOURCE_NO(33,"订单外包驳回"),
+	ORDER_YES(34,"订单审核通过"),
+	ORDER_NO(35,"订单审核驳回"),
+	ORDER_TASK_TO(36,"项目任务分配"),
+	PROJECT_OUTSOURCE_START(37,"项目外包发起"),
+	PROJECT_OUTSOURCE_YES(38,"项目外包通过"),
+	PROJECT_OUTSOURCE_NO(39,"项目外包拒绝"),
+	OTHER(0, "其他");
+
+	private NoticeStatus(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, NoticeStatus> status = new HashMap<Integer, NoticeStatus>();
+
+	static {
+		for (NoticeStatus value : NoticeStatus.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static String getValueByCode(Integer code){
+        for(NoticeStatus oticeStatus:NoticeStatus.values()){
+            if(code.equals(oticeStatus.getCode())){
+                return oticeStatus.getDesc();
+            }
+        }
+        return  null;
+    }
+
+	public static NoticeStatus getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return OTHER;
+	}
+
+	public static NoticeStatus getStatus(String code) {
+		if (StringUtils.isNumeric(code)) {
+			return getStatus(Integer.parseInt(code));
+		}
+		return OTHER;
+	}
+
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+
+	private Integer	code;
+	private String	desc;
+
+	public Integer getCode() {
+		return code;
+	}
+
+	public String getDesc() {
+		return desc;
+	}
+
+}

+ 82 - 80
src/main/java/com/goafanti/common/enums/OrderLogProcess.java

@@ -1,80 +1,82 @@
-package com.goafanti.common.enums;
-
-import java.util.HashMap;
-import java.util.Map;
-
-import org.apache.commons.lang3.StringUtils;
-
-import com.goafanti.order.enums.OrderNewState;
-
-public enum OrderLogProcess {
-//	流程 0发起退单 1提交 2审核 3驳回  4特批 5财务派单 6财务首付 7项目订单派单 8项目派单 9项目完成 10 退单完成 11财务全款 12发起外包 13外包通过 14外包拒绝
-	TJ(1, "营销员提交"),
-	SH(2, "管理员审核"),
-	BH(3, "驳回"),
-	TP(4, "特批通过"),
-	CWPD(5, "财务派单"),
-	CWSF(6, "财务首付"),
-	XMDDPD(7, "项目订单派单"),
-	XMPD(8, "项目派单"),
-	XMWC(9, "项目完成"),
-	FQTD(0,"发起退单"),
-	WCTD(10,"退单完成"),
-	CWQK(11,"财务全款"),
-	FQWB(12,"发起外包"),
-	WBSH(13,"外包审核通过"),
-	WBBH(14,"外包审核驳回"),
-	NOT(99,"未知"),
-	;
-	
-	private OrderLogProcess(Integer code, String desc) {
-		this.code = code;
-		this.desc = desc;
-	}
-
-	private static Map<Integer, OrderLogProcess> status = new HashMap<Integer, OrderLogProcess>();
-
-	static {
-		for (OrderLogProcess value : OrderLogProcess.values()) {
-			status.put(value.getCode(), value);
-		}
-	}
-	public static String getValueByCode(Integer code){
-        for(OrderLogProcess orderLogProcess:OrderLogProcess.values()){
-            if(code.equals(orderLogProcess.getCode())){
-                return orderLogProcess.getDesc();
-            }
-        }
-        return  NOT.getDesc();
-    }
-	
-	
-	public static OrderLogProcess getStatus(Integer code) {
-		if (containsType(code)) {
-			return status.get(code);
-		}
-		return null;
-	}
-
-	public static OrderLogProcess getStatus(String code) {
-		if (StringUtils.isNumeric(code)) {
-			return getStatus(Integer.parseInt(code));
-		}
-		return null;
-	}
-
-	public static boolean containsType(Integer code) {
-		return status.containsKey(code);
-	}
-
-	private Integer	code;
-	private String	desc;
-
-	public Integer getCode() {
-		return code;
-	}
-
-	public String getDesc() {
-		return desc;
-	}
-}
+package com.goafanti.common.enums;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang3.StringUtils;
+
+import com.goafanti.order.enums.OrderNewState;
+
+public enum OrderLogProcess {
+//	流程 0发起退单 1提交 2审核 3驳回  4特批 5财务派单 6财务首付 7项目订单派单 8项目派单 9项目完成 10 退单完成 11财务全款 12发起外包 13外包通过 14外包拒绝
+	TJ(1, "营销员提交"),
+	SH(2, "管理员审核"),
+	BH(3, "驳回"),
+	TP(4, "特批通过"),
+	CWPD(5, "财务派单"),
+	CWSF(6, "财务首付"),
+	XMDDPD(7, "项目订单派单"),
+	XMPD(8, "项目派单"),
+	XMWC(9, "项目完成"),
+	FQTD(0,"发起退单"),
+	WCTD(10,"退单完成"),
+	CWQK(11,"财务全款"),
+	FQWB(12,"发起外包"),
+	WBTG(13,"订单外包通过"),
+	WBBH(14,"订单外包驳回"),
+	XMWBTG(15,"项目外包通过"),
+	XMWBBH(16,"项目外包驳回"),
+	NOT(99,"未知"),
+	;
+	
+	private OrderLogProcess(Integer code, String desc) {
+		this.code = code;
+		this.desc = desc;
+	}
+
+	private static Map<Integer, OrderLogProcess> status = new HashMap<Integer, OrderLogProcess>();
+
+	static {
+		for (OrderLogProcess value : OrderLogProcess.values()) {
+			status.put(value.getCode(), value);
+		}
+	}
+	public static String getValueByCode(Integer code){
+        for(OrderLogProcess orderLogProcess:OrderLogProcess.values()){
+            if(code.equals(orderLogProcess.getCode())){
+                return orderLogProcess.getDesc();
+            }
+        }
+        return  NOT.getDesc();
+    }
+	
+	
+	public static OrderLogProcess getStatus(Integer code) {
+		if (containsType(code)) {
+			return status.get(code);
+		}
+		return null;
+	}
+
+	public static OrderLogProcess getStatus(String code) {
+		if (StringUtils.isNumeric(code)) {
+			return getStatus(Integer.parseInt(code));
+		}
+		return null;
+	}
+
+	public static boolean containsType(Integer code) {
+		return status.containsKey(code);
+	}
+
+	private Integer	code;
+	private String	desc;
+
+	public Integer getCode() {
+		return code;
+	}
+
+	public String getDesc() {
+		return desc;
+	}
+}

Разница между файлами не показана из-за своего большого размера
+ 549 - 511
src/main/java/com/goafanti/common/mapper/TOrderOutsourceMapper.xml


+ 45 - 31
src/main/java/com/goafanti/common/mapper/TOrderTaskMapper.xml

@@ -5,7 +5,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     <id column="id" jdbcType="INTEGER" property="id" />
     <result column="order_no" jdbcType="VARCHAR" property="orderNo" />
@@ -42,12 +42,13 @@
     <result column="outsource_price" jdbcType="DECIMAL" property="outsourcePrice" />
     <result column="consultant_id" jdbcType="VARCHAR" property="consultantId" />
     <result column="manager_id" jdbcType="VARCHAR" property="managerId" />
+    <result column="outsource" jdbcType="INTEGER" property="outsource" />
   </resultMap>
   <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.goafanti.common.model.TOrderTask">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     <result column="attachment_url" jdbcType="LONGVARCHAR" property="attachmentUrl" />
   </resultMap>
@@ -55,7 +56,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     <where>
       <foreach collection="oredCriteria" item="criteria" separator="or">
@@ -89,7 +90,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     <where>
       <foreach collection="example.oredCriteria" item="criteria" separator="or">
@@ -123,20 +124,20 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     id, order_no, main, super_id, commodity_id, commodity_name, commodity_quantity, commodity_mode, 
     commodity_price, task_status, task_distribution_time, task_allocator, task_receiver, 
     task_comment, task_start_time, task_end_time, project_status, accept_time, review_time, 
     publicity_time, licence_time, certificate_number, status, form_retrieve, task_refund, 
     refund_content, retrieve_content, declare_user, declare_pwd, set_up_amount, arrival_money, 
-    outsource_name, outsource_price, consultant_id, manager_id
+    outsource_name, outsource_price, consultant_id, manager_id, outsource
   </sql>
   <sql id="Blob_Column_List">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     attachment_url
   </sql>
@@ -144,7 +145,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     select
     <if test="distinct">
@@ -165,7 +166,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     select
     <if test="distinct">
@@ -184,7 +185,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     select 
     <include refid="Base_Column_List" />
@@ -197,7 +198,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     delete from t_order_task
     where id = #{id,jdbcType=INTEGER}
@@ -206,7 +207,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     delete from t_order_task
     <if test="_parameter != null">
@@ -217,7 +218,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     insert into t_order_task (id, order_no, main, 
       super_id, commodity_id, commodity_name, 
@@ -230,8 +231,8 @@
       task_refund, refund_content, retrieve_content, 
       declare_user, declare_pwd, set_up_amount, 
       arrival_money, outsource_name, outsource_price, 
-      consultant_id, manager_id, attachment_url
-      )
+      consultant_id, manager_id, outsource, 
+      attachment_url)
     values (#{id,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{main,jdbcType=INTEGER}, 
       #{superId,jdbcType=VARCHAR}, #{commodityId,jdbcType=VARCHAR}, #{commodityName,jdbcType=VARCHAR}, 
       #{commodityQuantity,jdbcType=INTEGER}, #{commodityMode,jdbcType=VARCHAR}, #{commodityPrice,jdbcType=DECIMAL}, 
@@ -243,18 +244,15 @@
       #{taskRefund,jdbcType=INTEGER}, #{refundContent,jdbcType=VARCHAR}, #{retrieveContent,jdbcType=VARCHAR}, 
       #{declareUser,jdbcType=VARCHAR}, #{declarePwd,jdbcType=VARCHAR}, #{setUpAmount,jdbcType=DECIMAL}, 
       #{arrivalMoney,jdbcType=INTEGER}, #{outsourceName,jdbcType=VARCHAR}, #{outsourcePrice,jdbcType=DECIMAL}, 
-      #{consultantId,jdbcType=VARCHAR}, #{managerId,jdbcType=VARCHAR}, #{attachmentUrl,jdbcType=LONGVARCHAR}
-      )
+      #{consultantId,jdbcType=VARCHAR}, #{managerId,jdbcType=VARCHAR}, #{outsource,jdbcType=INTEGER}, 
+      #{attachmentUrl,jdbcType=LONGVARCHAR})
   </insert>
-  <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderTask" >
+  <insert id="insertSelective" parameterType="com.goafanti.common.model.TOrderTask">
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
-    <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
-      select LAST_INSERT_ID() as id
-      </selectKey>
     insert into t_order_task
     <trim prefix="(" suffix=")" suffixOverrides=",">
       <if test="id != null">
@@ -362,6 +360,9 @@
       <if test="managerId != null">
         manager_id,
       </if>
+      <if test="outsource != null">
+        outsource,
+      </if>
       <if test="attachmentUrl != null">
         attachment_url,
       </if>
@@ -472,6 +473,9 @@
       <if test="managerId != null">
         #{managerId,jdbcType=VARCHAR},
       </if>
+      <if test="outsource != null">
+        #{outsource,jdbcType=INTEGER},
+      </if>
       <if test="attachmentUrl != null">
         #{attachmentUrl,jdbcType=LONGVARCHAR},
       </if>
@@ -481,7 +485,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     select count(*) from t_order_task
     <if test="_parameter != null">
@@ -492,7 +496,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     update t_order_task
     <set>
@@ -601,6 +605,9 @@
       <if test="record.managerId != null">
         manager_id = #{record.managerId,jdbcType=VARCHAR},
       </if>
+      <if test="record.outsource != null">
+        outsource = #{record.outsource,jdbcType=INTEGER},
+      </if>
       <if test="record.attachmentUrl != null">
         attachment_url = #{record.attachmentUrl,jdbcType=LONGVARCHAR},
       </if>
@@ -613,7 +620,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     update t_order_task
     set id = #{record.id,jdbcType=INTEGER},
@@ -651,6 +658,7 @@
       outsource_price = #{record.outsourcePrice,jdbcType=DECIMAL},
       consultant_id = #{record.consultantId,jdbcType=VARCHAR},
       manager_id = #{record.managerId,jdbcType=VARCHAR},
+      outsource = #{record.outsource,jdbcType=INTEGER},
       attachment_url = #{record.attachmentUrl,jdbcType=LONGVARCHAR}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
@@ -660,7 +668,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     update t_order_task
     set id = #{record.id,jdbcType=INTEGER},
@@ -697,7 +705,8 @@
       outsource_name = #{record.outsourceName,jdbcType=VARCHAR},
       outsource_price = #{record.outsourcePrice,jdbcType=DECIMAL},
       consultant_id = #{record.consultantId,jdbcType=VARCHAR},
-      manager_id = #{record.managerId,jdbcType=VARCHAR}
+      manager_id = #{record.managerId,jdbcType=VARCHAR},
+      outsource = #{record.outsource,jdbcType=INTEGER}
     <if test="_parameter != null">
       <include refid="Update_By_Example_Where_Clause" />
     </if>
@@ -706,7 +715,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     update t_order_task
     <set>
@@ -812,6 +821,9 @@
       <if test="managerId != null">
         manager_id = #{managerId,jdbcType=VARCHAR},
       </if>
+      <if test="outsource != null">
+        outsource = #{outsource,jdbcType=INTEGER},
+      </if>
       <if test="attachmentUrl != null">
         attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR},
       </if>
@@ -822,7 +834,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     update t_order_task
     set order_no = #{orderNo,jdbcType=VARCHAR},
@@ -859,6 +871,7 @@
       outsource_price = #{outsourcePrice,jdbcType=DECIMAL},
       consultant_id = #{consultantId,jdbcType=VARCHAR},
       manager_id = #{managerId,jdbcType=VARCHAR},
+      outsource = #{outsource,jdbcType=INTEGER},
       attachment_url = #{attachmentUrl,jdbcType=LONGVARCHAR}
     where id = #{id,jdbcType=INTEGER}
   </update>
@@ -866,7 +879,7 @@
     <!--
       WARNING - @mbg.generated
       This element is automatically generated by MyBatis Generator, do not modify.
-      This element was generated on Wed Nov 20 10:18:39 CST 2019.
+      This element was generated on Thu Mar 05 14:35:19 CST 2020.
     -->
     update t_order_task
     set order_no = #{orderNo,jdbcType=VARCHAR},
@@ -902,7 +915,8 @@
       outsource_name = #{outsourceName,jdbcType=VARCHAR},
       outsource_price = #{outsourcePrice,jdbcType=DECIMAL},
       consultant_id = #{consultantId,jdbcType=VARCHAR},
-      manager_id = #{managerId,jdbcType=VARCHAR}
+      manager_id = #{managerId,jdbcType=VARCHAR},
+      outsource = #{outsource,jdbcType=INTEGER}
     where id = #{id,jdbcType=INTEGER}
   </update>
   <select id="selectOrderTask" resultType="com.goafanti.order.bo.TOrderTaskBo">

+ 352 - 306
src/main/java/com/goafanti/common/model/TOrderOutsource.java

@@ -1,307 +1,353 @@
-package com.goafanti.common.model;
-
-import java.math.BigDecimal;
-import java.util.Date;
-
-public class TOrderOutsource {
-
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.id
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private Integer id;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.order_no
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private String orderNo;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.refund_status
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private Integer refundStatus;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.create_time
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private Date createTime;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.remarks
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private String remarks;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.attachment_url
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private String attachmentUrl;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.picture_url
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private String pictureUrl;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.amount
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private BigDecimal amount;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.company_name
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private String companyName;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.audit_time
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private Date auditTime;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.unit_price
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private BigDecimal unitPrice;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.unit_number
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private Integer unitNumber;
-	/**
-	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.outsource_remarks
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	private String outsourceRemarks;
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.id
-	 * @return  the value of t_order_outsource.id
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public Integer getId() {
-		return id;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.id
-	 * @param id  the value for t_order_outsource.id
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setId(Integer id) {
-		this.id = id;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.order_no
-	 * @return  the value of t_order_outsource.order_no
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public String getOrderNo() {
-		return orderNo;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.order_no
-	 * @param orderNo  the value for t_order_outsource.order_no
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setOrderNo(String orderNo) {
-		this.orderNo = orderNo;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.refund_status
-	 * @return  the value of t_order_outsource.refund_status
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public Integer getRefundStatus() {
-		return refundStatus;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.refund_status
-	 * @param refundStatus  the value for t_order_outsource.refund_status
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setRefundStatus(Integer refundStatus) {
-		this.refundStatus = refundStatus;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.create_time
-	 * @return  the value of t_order_outsource.create_time
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public Date getCreateTime() {
-		return createTime;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.create_time
-	 * @param createTime  the value for t_order_outsource.create_time
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setCreateTime(Date createTime) {
-		this.createTime = createTime;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.remarks
-	 * @return  the value of t_order_outsource.remarks
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public String getRemarks() {
-		return remarks;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.remarks
-	 * @param remarks  the value for t_order_outsource.remarks
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setRemarks(String remarks) {
-		this.remarks = remarks;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.attachment_url
-	 * @return  the value of t_order_outsource.attachment_url
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public String getAttachmentUrl() {
-		return attachmentUrl;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.attachment_url
-	 * @param attachmentUrl  the value for t_order_outsource.attachment_url
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setAttachmentUrl(String attachmentUrl) {
-		this.attachmentUrl = attachmentUrl;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.picture_url
-	 * @return  the value of t_order_outsource.picture_url
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public String getPictureUrl() {
-		return pictureUrl;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.picture_url
-	 * @param pictureUrl  the value for t_order_outsource.picture_url
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setPictureUrl(String pictureUrl) {
-		this.pictureUrl = pictureUrl;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.amount
-	 * @return  the value of t_order_outsource.amount
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public BigDecimal getAmount() {
-		return amount;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.amount
-	 * @param amount  the value for t_order_outsource.amount
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setAmount(BigDecimal amount) {
-		this.amount = amount;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.company_name
-	 * @return  the value of t_order_outsource.company_name
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public String getCompanyName() {
-		return companyName;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.company_name
-	 * @param companyName  the value for t_order_outsource.company_name
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setCompanyName(String companyName) {
-		this.companyName = companyName;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.audit_time
-	 * @return  the value of t_order_outsource.audit_time
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public Date getAuditTime() {
-		return auditTime;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.audit_time
-	 * @param auditTime  the value for t_order_outsource.audit_time
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setAuditTime(Date auditTime) {
-		this.auditTime = auditTime;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.unit_price
-	 * @return  the value of t_order_outsource.unit_price
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public BigDecimal getUnitPrice() {
-		return unitPrice;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.unit_price
-	 * @param unitPrice  the value for t_order_outsource.unit_price
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setUnitPrice(BigDecimal unitPrice) {
-		this.unitPrice = unitPrice;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.unit_number
-	 * @return  the value of t_order_outsource.unit_number
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public Integer getUnitNumber() {
-		return unitNumber;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.unit_number
-	 * @param unitNumber  the value for t_order_outsource.unit_number
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setUnitNumber(Integer unitNumber) {
-		this.unitNumber = unitNumber;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.outsource_remarks
-	 * @return  the value of t_order_outsource.outsource_remarks
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public String getOutsourceRemarks() {
-		return outsourceRemarks;
-	}
-
-	/**
-	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.outsource_remarks
-	 * @param outsourceRemarks  the value for t_order_outsource.outsource_remarks
-	 * @mbg.generated  Mon Aug 12 10:26:36 CST 2019
-	 */
-	public void setOutsourceRemarks(String outsourceRemarks) {
-		this.outsourceRemarks = outsourceRemarks;
-	}
+package com.goafanti.common.model;
+
+import java.math.BigDecimal;
+import java.util.Date;
+
+public class TOrderOutsource {
+
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.id
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private Integer id;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.order_no
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private String orderNo;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.refund_status
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private Integer refundStatus;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.create_time
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private Date createTime;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.remarks
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private String remarks;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.attachment_url
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private String attachmentUrl;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.picture_url
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private String pictureUrl;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.amount
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private BigDecimal amount;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.company_name
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private String companyName;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.audit_time
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private Date auditTime;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.unit_price
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private BigDecimal unitPrice;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.unit_number
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private Integer unitNumber;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.outsource_remarks
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private String outsourceRemarks;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.type
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private Integer type;
+	/**
+	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_outsource.tid
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	private Integer tid;
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.id
+	 * @return  the value of t_order_outsource.id
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public Integer getId() {
+		return id;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.id
+	 * @param id  the value for t_order_outsource.id
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setId(Integer id) {
+		this.id = id;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.order_no
+	 * @return  the value of t_order_outsource.order_no
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public String getOrderNo() {
+		return orderNo;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.order_no
+	 * @param orderNo  the value for t_order_outsource.order_no
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setOrderNo(String orderNo) {
+		this.orderNo = orderNo;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.refund_status
+	 * @return  the value of t_order_outsource.refund_status
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public Integer getRefundStatus() {
+		return refundStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.refund_status
+	 * @param refundStatus  the value for t_order_outsource.refund_status
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setRefundStatus(Integer refundStatus) {
+		this.refundStatus = refundStatus;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.create_time
+	 * @return  the value of t_order_outsource.create_time
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public Date getCreateTime() {
+		return createTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.create_time
+	 * @param createTime  the value for t_order_outsource.create_time
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setCreateTime(Date createTime) {
+		this.createTime = createTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.remarks
+	 * @return  the value of t_order_outsource.remarks
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public String getRemarks() {
+		return remarks;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.remarks
+	 * @param remarks  the value for t_order_outsource.remarks
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setRemarks(String remarks) {
+		this.remarks = remarks;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.attachment_url
+	 * @return  the value of t_order_outsource.attachment_url
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public String getAttachmentUrl() {
+		return attachmentUrl;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.attachment_url
+	 * @param attachmentUrl  the value for t_order_outsource.attachment_url
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setAttachmentUrl(String attachmentUrl) {
+		this.attachmentUrl = attachmentUrl;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.picture_url
+	 * @return  the value of t_order_outsource.picture_url
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public String getPictureUrl() {
+		return pictureUrl;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.picture_url
+	 * @param pictureUrl  the value for t_order_outsource.picture_url
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setPictureUrl(String pictureUrl) {
+		this.pictureUrl = pictureUrl;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.amount
+	 * @return  the value of t_order_outsource.amount
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public BigDecimal getAmount() {
+		return amount;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.amount
+	 * @param amount  the value for t_order_outsource.amount
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setAmount(BigDecimal amount) {
+		this.amount = amount;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.company_name
+	 * @return  the value of t_order_outsource.company_name
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public String getCompanyName() {
+		return companyName;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.company_name
+	 * @param companyName  the value for t_order_outsource.company_name
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setCompanyName(String companyName) {
+		this.companyName = companyName;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.audit_time
+	 * @return  the value of t_order_outsource.audit_time
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public Date getAuditTime() {
+		return auditTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.audit_time
+	 * @param auditTime  the value for t_order_outsource.audit_time
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setAuditTime(Date auditTime) {
+		this.auditTime = auditTime;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.unit_price
+	 * @return  the value of t_order_outsource.unit_price
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public BigDecimal getUnitPrice() {
+		return unitPrice;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.unit_price
+	 * @param unitPrice  the value for t_order_outsource.unit_price
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setUnitPrice(BigDecimal unitPrice) {
+		this.unitPrice = unitPrice;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.unit_number
+	 * @return  the value of t_order_outsource.unit_number
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public Integer getUnitNumber() {
+		return unitNumber;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.unit_number
+	 * @param unitNumber  the value for t_order_outsource.unit_number
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setUnitNumber(Integer unitNumber) {
+		this.unitNumber = unitNumber;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.outsource_remarks
+	 * @return  the value of t_order_outsource.outsource_remarks
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public String getOutsourceRemarks() {
+		return outsourceRemarks;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.outsource_remarks
+	 * @param outsourceRemarks  the value for t_order_outsource.outsource_remarks
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setOutsourceRemarks(String outsourceRemarks) {
+		this.outsourceRemarks = outsourceRemarks;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.type
+	 * @return  the value of t_order_outsource.type
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public Integer getType() {
+		return type;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.type
+	 * @param type  the value for t_order_outsource.type
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setType(Integer type) {
+		this.type = type;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_outsource.tid
+	 * @return  the value of t_order_outsource.tid
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public Integer getTid() {
+		return tid;
+	}
+
+	/**
+	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_outsource.tid
+	 * @param tid  the value for t_order_outsource.tid
+	 * @mbg.generated  Wed Mar 04 11:31:18 CST 2020
+	 */
+	public void setTid(Integer tid) {
+		this.tid = tid;
+	}
 }

Разница между файлами не показана из-за своего большого размера
+ 1222 - 1102
src/main/java/com/goafanti/common/model/TOrderOutsourceExample.java


Разница между файлами не показана из-за своего большого размера
+ 884 - 861
src/main/java/com/goafanti/common/model/TOrderTask.java


Разница между файлами не показана из-за своего большого размера
+ 2609 - 2549
src/main/java/com/goafanti/common/model/TOrderTaskExample.java


+ 101 - 87
src/main/java/com/goafanti/order/bo/OrderOutsourceBo.java

@@ -1,87 +1,101 @@
-package com.goafanti.order.bo;
-
-
-public class OrderOutsourceBo  {
-	private String orderNo;
-	private String contractNo;
-	private String createTime;
-	private String signTime;
-	private String userName;
-	private String depName;
-	private String totalAmount;
-	private String adminName;
-	private String financeName;
-	private Integer liquidationStatus;
-	private Integer refundStatus;
-	
-	
-	public String getOrderNo() {
-		return orderNo;
-	}
-	public void setOrderNo(String orderNo) {
-		this.orderNo = orderNo;
-	}
-	public String getContractNo() {
-		return contractNo;
-	}
-	public void setContractNo(String contractNo) {
-		this.contractNo = contractNo;
-	}
-
-	public String getSignTime() {
-		return signTime;
-	}
-	public void setSignTime(String signTime) {
-		this.signTime = signTime;
-	}
-	public String getUserName() {
-		return userName;
-	}
-	public void setUserName(String userName) {
-		this.userName = userName;
-	}
-	public String getDepName() {
-		return depName;
-	}
-	public void setDepName(String depName) {
-		this.depName = depName;
-	}
-	public String getTotalAmount() {
-		return totalAmount;
-	}
-	public void setTotalAmount(String totalAmount) {
-		this.totalAmount = totalAmount;
-	}
-	public String getAdminName() {
-		return adminName;
-	}
-	public void setAdminName(String adminName) {
-		this.adminName = adminName;
-	}
-	public String getFinanceName() {
-		if(financeName==null)return "";
-		return financeName;
-	}
-	public void setFinanceName(String financeName) {
-		this.financeName = financeName;
-	}
-	public Integer getLiquidationStatus() {
-		return liquidationStatus;
-	}
-	public void setLiquidationStatus(Integer liquidationStatus) {
-		this.liquidationStatus = liquidationStatus;
-	}
-	public Integer getRefundStatus() {
-		return refundStatus;
-	}
-	public void setRefundStatus(Integer refundStatus) {
-		this.refundStatus = refundStatus;
-	}
-	public String getCreateTime() {
-		return createTime;
-	}
-	public void setCreateTime(String createTime) {
-		this.createTime = createTime;
-	}
-	
-}
+package com.goafanti.order.bo;
+
+
+public class OrderOutsourceBo  {
+	private String orderNo;
+	private String contractNo;
+	private String createTime;
+	private String signTime;
+	private String userName;
+	private String depName;
+	private String totalAmount;
+	private String adminName;
+	private String financeName;
+	private Integer liquidationStatus;
+	private Integer refundStatus;
+	private Integer type;
+	private Integer tid;
+	
+	
+	public String getOrderNo() {
+		return orderNo;
+	}
+	public void setOrderNo(String orderNo) {
+		this.orderNo = orderNo;
+	}
+	public String getContractNo() {
+		return contractNo;
+	}
+	public void setContractNo(String contractNo) {
+		this.contractNo = contractNo;
+	}
+
+	public String getSignTime() {
+		return signTime;
+	}
+	public void setSignTime(String signTime) {
+		this.signTime = signTime;
+	}
+	public String getUserName() {
+		return userName;
+	}
+	public void setUserName(String userName) {
+		this.userName = userName;
+	}
+	public String getDepName() {
+		return depName;
+	}
+	public void setDepName(String depName) {
+		this.depName = depName;
+	}
+	public String getTotalAmount() {
+		return totalAmount;
+	}
+	public void setTotalAmount(String totalAmount) {
+		this.totalAmount = totalAmount;
+	}
+	public String getAdminName() {
+		return adminName;
+	}
+	public void setAdminName(String adminName) {
+		this.adminName = adminName;
+	}
+	public String getFinanceName() {
+		if(financeName==null)return "";
+		return financeName;
+	}
+	public void setFinanceName(String financeName) {
+		this.financeName = financeName;
+	}
+	public Integer getLiquidationStatus() {
+		return liquidationStatus;
+	}
+	public void setLiquidationStatus(Integer liquidationStatus) {
+		this.liquidationStatus = liquidationStatus;
+	}
+	public Integer getRefundStatus() {
+		return refundStatus;
+	}
+	public void setRefundStatus(Integer refundStatus) {
+		this.refundStatus = refundStatus;
+	}
+	public String getCreateTime() {
+		return createTime;
+	}
+	public void setCreateTime(String createTime) {
+		this.createTime = createTime;
+	}
+	public Integer getType() {
+		return type;
+	}
+	public void setType(Integer type) {
+		this.type = type;
+	}
+	public Integer getTid() {
+		return tid;
+	}
+	public void setTid(Integer tid) {
+		this.tid = tid;
+	}
+	
+}

+ 202 - 183
src/main/java/com/goafanti/order/controller/OutsourceOrgApiController.java

@@ -1,183 +1,202 @@
-package com.goafanti.order.controller;
-
-
-
-
-
-import javax.annotation.Resource;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.apache.commons.lang3.StringUtils;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RequestMethod;
-import org.springframework.web.bind.annotation.RestController;
-
-import com.goafanti.common.bo.Result;
-import com.goafanti.common.constant.ErrorConstants;
-import com.goafanti.common.controller.CertifyApiController;
-import com.goafanti.common.model.OutsourceOrganization;
-import com.goafanti.common.model.TOrderOutsource;
-import com.goafanti.order.bo.OrderOutsourceDtails;
-import com.goafanti.order.enums.OrderNewState;
-import com.goafanti.order.service.OrderNewService;
-import com.goafanti.order.service.OutsourceOrgService;
-
-@RestController
-@RequestMapping(value = "/api/admin/outsourceOrg")
-public class OutsourceOrgApiController extends CertifyApiController {
-	
-	@Resource
-	private OutsourceOrgService	outsourceOrgService;
-	@Resource
-	private OrderNewService	orderNewService;
-	
-	@RequestMapping(value = "/addOutsourceOrg", method=RequestMethod.POST)
-	public Result addOutsourceOrg(OutsourceOrganization o) {
-		Result res=new Result();
-		if (StringUtils.isBlank(o.getName())||
-				StringUtils.isBlank(o.getContacts())||
-					StringUtils.isBlank(o.getContactsMobile())) {
-			res.getError().add(buildError("", "名称、联系人、电话不能为空"));
-			return res;
-		}
-		res.data(outsourceOrgService.addOutsourceOrg(o));
-		return res;
-	}
-	@RequestMapping(value = "/updateOutsourceOrg", method=RequestMethod.POST)
-	public Result updateOutsourceOrg(OutsourceOrganization o) {
-		Result res=new Result();
-		if (StringUtils.isBlank(o.getName())||
-				StringUtils.isBlank(o.getContacts())||
-					StringUtils.isBlank(o.getContactsMobile())) {
-			res.getError().add(buildError("", "名称、联系人、电话不能为空"));
-			return res;
-		}
-		res.data(outsourceOrgService.updateOutsourceOrg(o));
-		
-		return res;
-	}
-	@RequestMapping(value = "/deleteOutsourceOrg", method=RequestMethod.POST)
-	public Result deleteOutsourceOrg(Integer id) {
-		Result res=new Result();
-		if (id==null) {
-			res.getError().add(buildError("", "必须选择外包公司"));
-			return res;
-		}
-		res.data(outsourceOrgService.deleteOutsourceOrg(id));
-		return res;
-	}
-	@RequestMapping(value = "/selectOutsourceOrg", method=RequestMethod.GET)
-	public Result selectOutsourceOrg(String  orderNo,String tid) {
-		Result res=new Result();
-		if (orderNo==null) {
-			res.getError().add(buildError("", "必须选择订单"));
-			return res;
-		}
-		res.data(outsourceOrgService.selectOutsourceOrg(orderNo,tid));
-		return res;
-	}
-	/** 外包文件上传 **/
-	@RequestMapping(value = "/uploadOutsourceFile", method = RequestMethod.POST)
-	public Result uploadOutsourceFile(HttpServletRequest req,String sign){
-		Result res = new Result();
-		//order_refund_file
-		res.setData(handleFile(res, "/order_outsource/", false, req, sign));
-		return res;
-	}
-	/**
-	 * 订单外包列表
-	 * @param orderNo
-	 * @return
-	 */
-	@RequestMapping(value = "/selectOrderOutsourceOrg", method=RequestMethod.GET)
-	public Result selectOrderOutsourceOrg(String  orderNo) {
-		Result res=new Result();
-		if (orderNo==null) {
-			res.getError().add(buildError("", "必须选择订单"));
-			return res;
-		}
-		res.data(outsourceOrgService.selectOrderOutsourceOrg(orderNo));
-		return res;
-	}
-	
-	/**
-	 * 审核并外包
-	 */
-	@RequestMapping(value="/auditOutsource", method = RequestMethod.POST)
-	public Result auditOutsource(TOrderOutsource o,Integer orderStatus){
-		Result res=new Result();
-		if(StringUtils.isBlank(o.getOrderNo())||StringUtils.isBlank(o.getCompanyName())||
-				o.getAmount()==null){
-			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "外包信息","外包信息"));
-			return res;
-		}
-		if(orderStatus==null||(orderStatus!=OrderNewState.QDSHTG.getCode()&&orderStatus!=OrderNewState.QDSHJJ.getCode())||
-				orderNewService.chekeOrderStatus(o.getOrderNo())){
-			res.getError().add(buildError( "审核状态错误","审核状态错误"));
-			return res;
-		}
-		return res.data(orderNewService.updateOrderNew(o.getOrderNo(),orderStatus,null,1,o));
-	}
-	/**
-	 * 外包审核列表
-	 */
-	@RequestMapping(value="/orderOutsourceList", method = RequestMethod.GET)
-	public Result orderOutsourceList(String name,String contractNo,String starTime,String endTime,Integer refundStatus,Integer pageNo,Integer pageSize){
-		Result res=new Result();
-		res.data(outsourceOrgService.orderOutsourceList(name, contractNo, starTime, endTime,refundStatus, pageNo, pageSize));
-		return res;
-	}
-	
-	/**
-	 * 外包审核列表(营销管理员列表)
-	 */
-	@RequestMapping(value="/salesmanOrderOutsourceList", method = RequestMethod.GET)
-	public Result salesmanOrderOutsourceList(String name,String contractNo,String starTime,String endTime,Integer refundStatus,Integer pageNo,Integer pageSize){
-		Result res=new Result();
-		res.data(outsourceOrgService.salesmanOrderOutsourceList(name, contractNo, starTime, endTime,refundStatus, pageNo, pageSize));
-		return res;
-	}
-	/**
-	 * 外包审核详情
-	 */
-	@RequestMapping(value="/orderOutsourceDtails", method = RequestMethod.GET)
-	public Result orderOutsourceDtails(String orderNo){
-		Result res=new Result();
-		res.data(outsourceOrgService.orderOutsourceDtails(orderNo));
-		return res;
-	}
-	/**
-	 * 外包审核
-	 */
-	@RequestMapping(value="/auditOutsourceNew", method = RequestMethod.POST)
-	public Result auditOutsourceNew(OrderOutsourceDtails o){
-		Result res=new Result();
-		if (o.getId()==null||null==o.getRefundStatus()||StringUtils.isBlank(o.getRemarks())) {
-			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "外包信息","外包信息"));
-			return res;
-		}
-		res.data(outsourceOrgService.updateAuditOutsource(o));
-		return res;
-	}
-	 /**
-     *	 下载文档
-     * 
-     * @param response
-     * @return
-     */
-    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
-    public Result downloadTemplateFile(HttpServletResponse response, String path) {
-        Result res = new Result();
-            if (null == path) {
-                res.getError().add(buildError(ErrorConstants.FILE_NON_EXISTENT, "", "找不到文件!"));
-            } else {
-               String suffix = path.substring(path.lastIndexOf("."));
-               String name=path.substring(path.lastIndexOf("_")+1, path.lastIndexOf("."));
-                String fileName = name + suffix;
-                downloadFile(response, fileName, path);
-        } 
-        return res;
-    } 
-    
-}
+package com.goafanti.order.controller;
+
+
+
+
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.goafanti.common.bo.Result;
+import com.goafanti.common.constant.ErrorConstants;
+import com.goafanti.common.controller.CertifyApiController;
+import com.goafanti.common.model.OutsourceOrganization;
+import com.goafanti.common.model.TOrderOutsource;
+import com.goafanti.order.bo.OrderOutsourceDtails;
+import com.goafanti.order.enums.OrderNewState;
+import com.goafanti.order.service.OrderNewService;
+import com.goafanti.order.service.OutsourceOrgService;
+
+@RestController
+@RequestMapping(value = "/api/admin/outsourceOrg")
+public class OutsourceOrgApiController extends CertifyApiController {
+	
+	@Resource
+	private OutsourceOrgService	outsourceOrgService;
+	@Resource
+	private OrderNewService	orderNewService;
+	
+	@RequestMapping(value = "/addOutsourceOrg", method=RequestMethod.POST)
+	public Result addOutsourceOrg(OutsourceOrganization o) {
+		Result res=new Result();
+		if (StringUtils.isBlank(o.getName())||
+				StringUtils.isBlank(o.getContacts())||
+					StringUtils.isBlank(o.getContactsMobile())) {
+			res.getError().add(buildError("", "名称、联系人、电话不能为空"));
+			return res;
+		}
+		res.data(outsourceOrgService.addOutsourceOrg(o));
+		return res;
+	}
+	@RequestMapping(value = "/updateOutsourceOrg", method=RequestMethod.POST)
+	public Result updateOutsourceOrg(OutsourceOrganization o) {
+		Result res=new Result();
+		if (StringUtils.isBlank(o.getName())||
+				StringUtils.isBlank(o.getContacts())||
+					StringUtils.isBlank(o.getContactsMobile())) {
+			res.getError().add(buildError("", "名称、联系人、电话不能为空"));
+			return res;
+		}
+		res.data(outsourceOrgService.updateOutsourceOrg(o));
+		
+		return res;
+	}
+	@RequestMapping(value = "/deleteOutsourceOrg", method=RequestMethod.POST)
+	public Result deleteOutsourceOrg(Integer id) {
+		Result res=new Result();
+		if (id==null) {
+			res.getError().add(buildError("", "必须选择外包公司"));
+			return res;
+		}
+		res.data(outsourceOrgService.deleteOutsourceOrg(id));
+		return res;
+	}
+	@RequestMapping(value = "/selectOutsourceOrg", method=RequestMethod.GET)
+	public Result selectOutsourceOrg(String  orderNo,String tid) {
+		Result res=new Result();
+		if (orderNo==null) {
+			res.getError().add(buildError("", "必须选择订单"));
+			return res;
+		}
+		res.data(outsourceOrgService.selectOutsourceOrg(orderNo,tid));
+		return res;
+	}
+	/** 外包文件上传 **/
+	@RequestMapping(value = "/uploadOutsourceFile", method = RequestMethod.POST)
+	public Result uploadOutsourceFile(HttpServletRequest req,String sign){
+		Result res = new Result();
+		//order_refund_file
+		res.setData(handleFile(res, "/order_outsource/", false, req, sign));
+		return res;
+	}
+	/**
+	 * 订单外包列表
+	 * @param orderNo
+	 * @return
+	 */
+	@RequestMapping(value = "/selectOrderOutsourceOrg", method=RequestMethod.GET)
+	public Result selectOrderOutsourceOrg(String  orderNo) {
+		Result res=new Result();
+		if (orderNo==null) {
+			res.getError().add(buildError("", "必须选择订单"));
+			return res;
+		}
+		res.data(outsourceOrgService.selectOrderOutsourceOrg(orderNo));
+		return res;
+	}
+	
+	/**
+	 * 订单发起外包
+	 */
+	@RequestMapping(value="/auditOutsource", method = RequestMethod.POST)
+	public Result auditOutsource(TOrderOutsource o,Integer orderStatus){
+		Result res=new Result();
+		if(StringUtils.isBlank(o.getOrderNo())||StringUtils.isBlank(o.getCompanyName())||
+				o.getAmount()==null){
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "外包信息","外包信息"));
+			return res;
+		}
+		if(orderStatus==null||(orderStatus!=OrderNewState.QDSHTG.getCode()&&orderStatus!=OrderNewState.QDSHJJ.getCode())||
+				orderNewService.chekeOrderStatus(o.getOrderNo())){
+			res.getError().add(buildError( "审核状态错误","审核状态错误"));
+			return res;
+		}
+		return res.data(orderNewService.updateOrderNew(o.getOrderNo(),orderStatus,null,1,o));
+	}
+	
+	/**
+	 * 项目发起外包
+	 */
+	@RequestMapping(value="/outsourceProjectAudit", method = RequestMethod.POST)
+	public Result outsourceProjectAudit(TOrderOutsource o){
+		Result res=new Result();
+		if(StringUtils.isBlank(o.getOrderNo())||StringUtils.isBlank(o.getCompanyName())||
+				o.getAmount()==null){
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "外包信息","外包信息"));
+			return res;
+		}
+		if(o.getType()!=1||o.getTid()==null){
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "项目外包信息","项目外包信息"));
+			return res;
+		}
+		
+		return res.data(orderNewService.pushOutsourceProjectAudit(o));
+	}
+	/**
+	 * 外包审核列表
+	 */
+	@RequestMapping(value="/orderOutsourceList", method = RequestMethod.GET)
+	public Result orderOutsourceList(String name,String contractNo,String starTime,String endTime,Integer refundStatus,Integer type,Integer pageNo,Integer pageSize){
+		Result res=new Result();
+		res.data(outsourceOrgService.orderOutsourceList(name, contractNo, starTime, endTime,refundStatus,type, pageNo, pageSize));
+		return res;
+	}
+	
+	/**
+	 * 外包审核列表(营销管理员列表)
+	 */
+	@RequestMapping(value="/salesmanOrderOutsourceList", method = RequestMethod.GET)
+	public Result salesmanOrderOutsourceList(String name,String contractNo,String starTime,String endTime,Integer refundStatus,Integer pageNo,Integer pageSize){
+		Result res=new Result();
+		res.data(outsourceOrgService.salesmanOrderOutsourceList(name, contractNo, starTime, endTime,refundStatus, pageNo, pageSize));
+		return res;
+	}
+	/**
+	 * 外包审核详情
+	 */
+	@RequestMapping(value="/orderOutsourceDtails", method = RequestMethod.GET)
+	public Result orderOutsourceDtails(String orderNo){
+		Result res=new Result();
+		res.data(outsourceOrgService.orderOutsourceDtails(orderNo));
+		return res;
+	}
+	/**
+	 * 外包审核
+	 */
+	@RequestMapping(value="/auditOutsourceNew", method = RequestMethod.POST)
+	public Result auditOutsourceNew(OrderOutsourceDtails o){
+		Result res=new Result();
+		if (o.getId()==null||null==o.getRefundStatus()||StringUtils.isBlank(o.getRemarks())) {
+			res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "外包信息","外包信息"));
+			return res;
+		}
+		res.data(outsourceOrgService.updateAuditOutsource(o));
+		return res;
+	}
+	 /**
+     *	 下载文档
+     * 
+     * @param response
+     * @return
+     */
+    @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
+    public Result downloadTemplateFile(HttpServletResponse response, String path) {
+        Result res = new Result();
+            if (null == path) {
+                res.getError().add(buildError(ErrorConstants.FILE_NON_EXISTENT, "", "找不到文件!"));
+            } else {
+               String suffix = path.substring(path.lastIndexOf("."));
+               String name=path.substring(path.lastIndexOf("_")+1, path.lastIndexOf("."));
+                String fileName = name + suffix;
+                downloadFile(response, fileName, path);
+        } 
+        return res;
+    } 
+    
+}

+ 201 - 199
src/main/java/com/goafanti/order/service/OrderNewService.java

@@ -1,199 +1,201 @@
-package com.goafanti.order.service;
-
-import java.io.IOException;
-import java.io.UnsupportedEncodingException;
-import java.util.List;
-
-import javax.mail.MessagingException;
-import javax.servlet.http.HttpServletResponse;
-
-
-import com.goafanti.common.error.BusinessException;
-import com.goafanti.common.model.TOrderDun;
-import com.goafanti.common.model.TOrderNew;
-import com.goafanti.common.model.TOrderOutsource;
-import com.goafanti.common.model.TOrderRefundWithBLOBs;
-import com.goafanti.common.model.TOrderTask;
-import com.goafanti.core.mybatis.page.Pagination;
-import com.goafanti.order.bo.OrderDunTaskBo;
-import com.goafanti.order.bo.OrderRefundDetailBo;
-import com.goafanti.order.bo.OutNewOrderDunBo;
-import com.goafanti.order.bo.TDunLogListBo;
-import com.goafanti.order.bo.TOrderLogBo;
-import com.goafanti.order.bo.TOrderNewBo;
-import com.goafanti.order.bo.TOrderRefundBo;
-import com.goafanti.order.bo.TOrderTaskBo;
-import com.goafanti.order.bo.outOrderDunListBo;
-
-public interface OrderNewService {
-	
-	/**
-	 * 创建订单
-	 * @param uid
-	 * @param orderType
-	 * @return
-	 */
-	int createServiceOrder(String uid, Integer orderType);
-	/**
-	 * 创建项目
-	 * @param t
-	 */
-	int addOrderTask(TOrderTask t);
-	/**
-	 * 修改项目信息
-	 * @param t
-	 * @return
-	 */
-	int updateOrderTask(TOrderTask t);
-	/**
-	 * 删除项目
-	 * @param id
-	 * @return
-	 */
-	int delectOrderTask(Integer id);
-	/**
-	 * 项目详情
-	 * @param orderNo
-	 * @return
-	 */
-	 List<TOrderTaskBo> selectOrderTask(String orderNo);
-	 /**
-	  * 订单提交或保存
-	  * @param t
-	  * @param isSubmit
-	  * @return
-	  */
-	int updateServiceOrder(TOrderNew t, Integer isSubmit);
-	/**
-	 * 订单详情
-	 * @param orderNo
-	 * @return
-	 */
-	TOrderNewBo getOrderNewDetail(String orderNo);
-	/**
-	 * 收款截点编辑
-	 * @param orderDun
-	 * @return
-	 */
-	int createOrderDun(String orderDun,String orderNo);
-	/**
-	 * 订单列表
-	 * @param name
-	 * @param orderNo
-	 * @param starTime
-	 * @param endTime
-	 * @param orderStatus
-	 * @param pageNo
-	 * @param pageSize
-	 * @param amountStatus 
-	 * @return
-	 */
-	Pagination<TOrderNewBo> orderNewList(String name, String orderNo, String starTime, String endTime,Integer specially ,Integer approval,Integer distribution,String depId,String contractNo,Integer outsource,Integer liquidationStatus, Integer amountStatus,Integer pageNo, Integer pageSize);
-	/**
-	 * 订单审核
-	 * @param orderNo
-	 * @param orderStatus
-	 * @param object 
-	 * @return
-	 */
-	int updateOrderNew(String orderNo, Integer orderStatus,String reason,Integer outsource, TOrderOutsource object);
-	
-	/**
-	 * 催款订单列表
-	 * @param name
-	 * @param orderNo
-	 * @param starTime
-	 * @param endTime
-	 * @param orderStatus
-	 * @param pageNo
-	 * @param pageSize
-	 * @return
-	 */
-	Pagination<outOrderDunListBo> dunOrderNewList(String name, String orderNo, String starTime, String endTime, Integer specially,String adminName,String depId,
-			Integer newStatus,Integer pageNo, Integer pageSize);
-	/**
-	 * 新增催款记录
-	 * @return
-	 */
-	int createDunLog(String dunId,String dumTime,String remarks);
-	/**
-	 * 查询催款记录
-	 * @param dunId
-	 * @return
-	 */
-	List<TDunLogListBo> selectDunLogList(String dunId);
-	/**
-	 * 新增退单
-	 * @param t
-	 * @return
-	 */
-	int addOrderRefund(TOrderRefundWithBLOBs t);
-	/**
-	 * 特批审核
-	 * @param orderNo
-	 * @param confirm
-	 * @return
-	 */
-	int updateApprovalOrder(String orderNo,Integer confirm,String reason);
-	/**
-	 * 查看收款截点
-	 * @param orderNo
-	 * @return
-	 */
-	List<TOrderDun> selectOrderDun(String orderNo);
-	/**
-	 * 退单列表
-	 * @param name
-	 * @param orderNo
-	 * @param starTime
-	 * @param endTime
-	 * @param specially
-	 * @param pageNo
-	 * @param pageSize
-	 * @return
-	 */
-	Pagination<TOrderRefundBo> orderRefundList(String name, String orderNo, String starTime, String endTime, Integer specially,
-			Integer pageNo, Integer pageSize);
-	
-	boolean checkOrderMain(TOrderTask t);
-	
-	boolean chekeOrderStatus(String orderNo);
-	
-	boolean chekeApprovalOrderStatus(String orderNo);
-	
-	int deleteOrderNew(String orderNo);
-	
-	boolean checkOderSettlementAmount(String orderNo);
-	
-	boolean checkORderTask(String orderNo);
-	
-	void exportOrderDunData(String name,String orderNo,String starTime,String endTime,Integer specially,String adminName,
-			String depId,Integer newStatus,Integer pageNo,Integer pageSize,HttpServletResponse response) throws  Exception;
-	
-	int updateOrderOver(String orderNo);
-	
-	OrderRefundDetailBo orderRefundDetail(String id);
-	
-	int updateOrderRefund(TOrderRefundWithBLOBs t);
-	
-	int updatetechnicianBackOrder(String orderNo, String reason);
-	
-	List<OrderDunTaskBo> selectAllOrderDun();
-	
-	void updateOrderDun(TOrderDun tDun);
-	
-	void addNoticAndSendEmail(String orderNo, OrderDunTaskBo t, Integer code)throws UnsupportedEncodingException, MessagingException;
-	
-	void addNewDunNoticAndSendEmail(TOrderNew t2, OutNewOrderDunBo o);
-	
-	void addTimingTaskNewDunNoticAndSendEmail(TOrderNew t2, OutNewOrderDunBo o);
-	
-	boolean checkORderDun(String orderNo);
-	
-	int updateFinance(String orderNo, String newFinance);
-	List<TOrderLogBo> selectOrderLog(String orderNo);
-
-	void pushGeneralSendNoticeAndEmail(List<String> alist, Integer type,String OrderNo,String adminId,Integer approval);
-	void exportOrderTaskData(String orderNo, HttpServletResponse response)throws IOException,BusinessException ;
-	
-}
+package com.goafanti.order.service;
+
+import java.io.IOException;
+import java.io.UnsupportedEncodingException;
+import java.util.List;
+
+import javax.mail.MessagingException;
+import javax.servlet.http.HttpServletResponse;
+
+
+import com.goafanti.common.error.BusinessException;
+import com.goafanti.common.model.TOrderDun;
+import com.goafanti.common.model.TOrderNew;
+import com.goafanti.common.model.TOrderOutsource;
+import com.goafanti.common.model.TOrderRefundWithBLOBs;
+import com.goafanti.common.model.TOrderTask;
+import com.goafanti.core.mybatis.page.Pagination;
+import com.goafanti.order.bo.OrderDunTaskBo;
+import com.goafanti.order.bo.OrderRefundDetailBo;
+import com.goafanti.order.bo.OutNewOrderDunBo;
+import com.goafanti.order.bo.TDunLogListBo;
+import com.goafanti.order.bo.TOrderLogBo;
+import com.goafanti.order.bo.TOrderNewBo;
+import com.goafanti.order.bo.TOrderRefundBo;
+import com.goafanti.order.bo.TOrderTaskBo;
+import com.goafanti.order.bo.outOrderDunListBo;
+
+public interface OrderNewService {
+	
+	/**
+	 * 创建订单
+	 * @param uid
+	 * @param orderType
+	 * @return
+	 */
+	int createServiceOrder(String uid, Integer orderType);
+	/**
+	 * 创建项目
+	 * @param t
+	 */
+	int addOrderTask(TOrderTask t);
+	/**
+	 * 修改项目信息
+	 * @param t
+	 * @return
+	 */
+	int updateOrderTask(TOrderTask t);
+	/**
+	 * 删除项目
+	 * @param id
+	 * @return
+	 */
+	int delectOrderTask(Integer id);
+	/**
+	 * 项目详情
+	 * @param orderNo
+	 * @return
+	 */
+	 List<TOrderTaskBo> selectOrderTask(String orderNo);
+	 /**
+	  * 订单提交或保存
+	  * @param t
+	  * @param isSubmit
+	  * @return
+	  */
+	int updateServiceOrder(TOrderNew t, Integer isSubmit);
+	/**
+	 * 订单详情
+	 * @param orderNo
+	 * @return
+	 */
+	TOrderNewBo getOrderNewDetail(String orderNo);
+	/**
+	 * 收款截点编辑
+	 * @param orderDun
+	 * @return
+	 */
+	int createOrderDun(String orderDun,String orderNo);
+	/**
+	 * 订单列表
+	 * @param name
+	 * @param orderNo
+	 * @param starTime
+	 * @param endTime
+	 * @param orderStatus
+	 * @param pageNo
+	 * @param pageSize
+	 * @param amountStatus 
+	 * @return
+	 */
+	Pagination<TOrderNewBo> orderNewList(String name, String orderNo, String starTime, String endTime,Integer specially ,Integer approval,Integer distribution,String depId,String contractNo,Integer outsource,Integer liquidationStatus, Integer amountStatus,Integer pageNo, Integer pageSize);
+	/**
+	 * 订单审核
+	 * @param orderNo
+	 * @param orderStatus
+	 * @param object 
+	 * @return
+	 */
+	int updateOrderNew(String orderNo, Integer orderStatus,String reason,Integer outsource, TOrderOutsource object);
+	
+	/**
+	 * 催款订单列表
+	 * @param name
+	 * @param orderNo
+	 * @param starTime
+	 * @param endTime
+	 * @param orderStatus
+	 * @param pageNo
+	 * @param pageSize
+	 * @return
+	 */
+	Pagination<outOrderDunListBo> dunOrderNewList(String name, String orderNo, String starTime, String endTime, Integer specially,String adminName,String depId,
+			Integer newStatus,Integer pageNo, Integer pageSize);
+	/**
+	 * 新增催款记录
+	 * @return
+	 */
+	int createDunLog(String dunId,String dumTime,String remarks);
+	/**
+	 * 查询催款记录
+	 * @param dunId
+	 * @return
+	 */
+	List<TDunLogListBo> selectDunLogList(String dunId);
+	/**
+	 * 新增退单
+	 * @param t
+	 * @return
+	 */
+	int addOrderRefund(TOrderRefundWithBLOBs t);
+	/**
+	 * 特批审核
+	 * @param orderNo
+	 * @param confirm
+	 * @return
+	 */
+	int updateApprovalOrder(String orderNo,Integer confirm,String reason);
+	/**
+	 * 查看收款截点
+	 * @param orderNo
+	 * @return
+	 */
+	List<TOrderDun> selectOrderDun(String orderNo);
+	/**
+	 * 退单列表
+	 * @param name
+	 * @param orderNo
+	 * @param starTime
+	 * @param endTime
+	 * @param specially
+	 * @param pageNo
+	 * @param pageSize
+	 * @return
+	 */
+	Pagination<TOrderRefundBo> orderRefundList(String name, String orderNo, String starTime, String endTime, Integer specially,
+			Integer pageNo, Integer pageSize);
+	
+	boolean checkOrderMain(TOrderTask t);
+	
+	boolean chekeOrderStatus(String orderNo);
+	
+	boolean chekeApprovalOrderStatus(String orderNo);
+	
+	int deleteOrderNew(String orderNo);
+	
+	boolean checkOderSettlementAmount(String orderNo);
+	
+	boolean checkORderTask(String orderNo);
+	
+	void exportOrderDunData(String name,String orderNo,String starTime,String endTime,Integer specially,String adminName,
+			String depId,Integer newStatus,Integer pageNo,Integer pageSize,HttpServletResponse response) throws  Exception;
+	
+	int updateOrderOver(String orderNo);
+	
+	OrderRefundDetailBo orderRefundDetail(String id);
+	
+	int updateOrderRefund(TOrderRefundWithBLOBs t);
+	
+	int updatetechnicianBackOrder(String orderNo, String reason);
+	
+	List<OrderDunTaskBo> selectAllOrderDun();
+	
+	void updateOrderDun(TOrderDun tDun);
+	
+	void addNoticAndSendEmail(String orderNo, OrderDunTaskBo t, Integer code)throws UnsupportedEncodingException, MessagingException;
+	
+	void addNewDunNoticAndSendEmail(TOrderNew t2, OutNewOrderDunBo o);
+	
+	void addTimingTaskNewDunNoticAndSendEmail(TOrderNew t2, OutNewOrderDunBo o);
+	
+	boolean checkORderDun(String orderNo);
+	
+	int updateFinance(String orderNo, String newFinance);
+	List<TOrderLogBo> selectOrderLog(String orderNo);
+
+	void pushGeneralSendNoticeAndEmail(List<String> alist, Integer type,String OrderNo,String adminId,Integer approval);
+	void exportOrderTaskData(String orderNo, HttpServletResponse response)throws IOException,BusinessException ;
+	
+	int pushOutsourceProjectAudit(TOrderOutsource o);
+	
+}

+ 34 - 34
src/main/java/com/goafanti/order/service/OutsourceOrgService.java

@@ -1,34 +1,34 @@
-package com.goafanti.order.service;
-
-import java.util.List;
-
-import com.goafanti.common.model.OutsourceOrganization;
-import com.goafanti.core.mybatis.page.Pagination;
-import com.goafanti.order.bo.OrderOutsourceBo;
-import com.goafanti.order.bo.OrderOutsourceDtails;
-import com.goafanti.order.bo.OutsourceOrganizationBo;
-
-public interface OutsourceOrgService {
-	
-	int addOutsourceOrg(OutsourceOrganization o);
-	
-	int updateOutsourceOrg(OutsourceOrganization o);
-	
-	int deleteOutsourceOrg(Integer id);
-
-	List<OutsourceOrganizationBo> selectOutsourceOrg(String orderNo,String tid);
-
-	List<OutsourceOrganizationBo> selectOrderOutsourceOrg(String orderNo);
-	
-	Pagination<OrderOutsourceBo> orderOutsourceList(String name, String contractNo, String starTime, String endTime,Integer refundStatus, Integer pageNo,
-			Integer pageSize);
-	
-	OrderOutsourceDtails orderOutsourceDtails(String orderNo);
-	
-	int updateAuditOutsource(OrderOutsourceDtails o);
-
-	Pagination<OrderOutsourceBo> salesmanOrderOutsourceList(String name, String contractNo, String starTime, String endTime,
-			Integer refundStatus, Integer pageNo, Integer pageSize);
-
-	
-}
+package com.goafanti.order.service;
+
+import java.util.List;
+
+import com.goafanti.common.model.OutsourceOrganization;
+import com.goafanti.core.mybatis.page.Pagination;
+import com.goafanti.order.bo.OrderOutsourceBo;
+import com.goafanti.order.bo.OrderOutsourceDtails;
+import com.goafanti.order.bo.OutsourceOrganizationBo;
+
+public interface OutsourceOrgService {
+	
+	int addOutsourceOrg(OutsourceOrganization o);
+	
+	int updateOutsourceOrg(OutsourceOrganization o);
+	
+	int deleteOutsourceOrg(Integer id);
+
+	List<OutsourceOrganizationBo> selectOutsourceOrg(String orderNo,String tid);
+
+	List<OutsourceOrganizationBo> selectOrderOutsourceOrg(String orderNo);
+	
+	Pagination<OrderOutsourceBo> orderOutsourceList(String name, String contractNo, String starTime, String endTime,Integer refundStatus,Integer type, Integer pageNo,
+			Integer pageSize);
+	
+	OrderOutsourceDtails orderOutsourceDtails(String orderNo);
+	
+	int updateAuditOutsource(OrderOutsourceDtails o);
+
+	Pagination<OrderOutsourceBo> salesmanOrderOutsourceList(String name, String contractNo, String starTime, String endTime,
+			Integer refundStatus, Integer pageNo, Integer pageSize);
+
+	
+}

+ 15 - 0
src/main/java/com/goafanti/order/service/impl/OrderNewServiceImpl.java

@@ -1237,6 +1237,21 @@ public class OrderNewServiceImpl extends BaseMybatisDao<TOrderNewMapper> impleme
 
 
 
+	@Override
+	public int pushOutsourceProjectAudit(TOrderOutsource o) {
+		o.setRefundStatus(0);
+		o.setCreateTime(new Date());
+		List<String> aids = new ArrayList<>();
+		for (Admin admin : adminMapper.getAdminRoleList("外包审核员")) {
+			aids.add(admin.getId());
+		}
+		TOrderNew t2= checkDeleteSign(o.getOrderNo());
+		pushGeneralSendNoticeAndEmail(aids, NoticeStatus.PROJECT_OUTSOURCE_START.getCode(),o.getOrderNo(), TokenManager.getAdminId(),t2.getApproval());
+		return tOrderOutsourceMapper.insertSelective(o);
+	}
+
+
+
 
 
 	

+ 177 - 154
src/main/java/com/goafanti/order/service/impl/OutsourceOrgServiceImpl.java

@@ -1,154 +1,177 @@
-package com.goafanti.order.service.impl;
-
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.commons.lang3.StringUtils;
-import org.hibernate.validator.constraints.Mod11Check.ProcessingDirection;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
-
-import com.goafanti.admin.bo.AdminListBo;
-import com.goafanti.common.dao.AdminMapper;
-import com.goafanti.common.dao.OrganizationManagementMapper;
-import com.goafanti.common.dao.OutsourceOrganizationMapper;
-import com.goafanti.common.dao.TOrderLogMapper;
-import com.goafanti.common.dao.TOrderNewMapper;
-import com.goafanti.common.dao.TOrderOutsourceMapper;
-import com.goafanti.common.enums.NoticeStatus;
-import com.goafanti.common.enums.OrderLogProcess;
-import com.goafanti.common.model.OutsourceOrganization;
-import com.goafanti.common.model.TOrderLog;
-import com.goafanti.common.model.TOrderNew;
-import com.goafanti.core.mybatis.BaseMybatisDao;
-import com.goafanti.core.mybatis.page.Pagination;
-import com.goafanti.core.shiro.token.TokenManager;
-import com.goafanti.order.bo.OrderOutsourceBo;
-import com.goafanti.order.bo.OrderOutsourceDtails;
-import com.goafanti.order.bo.OutsourceOrganizationBo;
-import com.goafanti.order.enums.ProcessStatus;
-import com.goafanti.order.service.OrderNewService;
-import com.goafanti.order.service.OrderService;
-import com.goafanti.order.service.OutsourceOrgService;
-import com.goafanti.organization.bo.OrganizationListOut;
-@Service
-public class OutsourceOrgServiceImpl  extends BaseMybatisDao<TOrderOutsourceMapper> implements OutsourceOrgService {
-	@Autowired
-	private OutsourceOrganizationMapper  outsourceOrganizationMapper;
-	@Autowired
-	private OrganizationManagementMapper	organizationManagementMapper;
-	@Autowired
-	private TOrderOutsourceMapper	tOrderOutsourceMapper;
-	@Autowired
-	private TOrderNewMapper	tOrderNewMapper;
-	@Autowired
-	private OrderService	orderService;
-	@Autowired
-	private TOrderLogMapper	tOrderLogMapper;
-	@Autowired
-	private OrderNewService	orderNewService;
-	@Autowired
-	private AdminMapper	adminMapper;
-	@Override
-	public int addOutsourceOrg(OutsourceOrganization o) {
-		return outsourceOrganizationMapper.insertSelective(o);
-	}
-	@Override
-	public int updateOutsourceOrg(OutsourceOrganization o) {
-		return outsourceOrganizationMapper.updateByPrimaryKeySelective(o);
-	}
-	@Override
-	public int deleteOutsourceOrg(Integer id) {
-		return outsourceOrganizationMapper.deleteByPrimaryKey(id);
-	}
-	@Override
-	public List<OutsourceOrganizationBo> selectOutsourceOrg(String orderNo,String tid) {
-		List<OutsourceOrganizationBo> l=outsourceOrganizationMapper.selectOutsourceOrg(orderNo,tid);
-		return l;
-	}
-	@Override
-	public List<OutsourceOrganizationBo> selectOrderOutsourceOrg(String orderNo) {
-		
-		return outsourceOrganizationMapper.selectOrderOutsourceOrg(orderNo);
-	}
-	
-	@Override
-	@SuppressWarnings("unchecked")
-	public Pagination<OrderOutsourceBo> orderOutsourceList(String name, String contractNo, String starTime,
-			String endTime,Integer refundStatus, Integer pageNo, Integer pageSize) {
-		Map<String, Object> params = new HashMap<String, Object>();
-		if(pageSize==null||pageSize<0)pageSize=10;
-		if(pageNo==null||pageNo<0)pageNo=1;
-		if (StringUtils.isNotBlank(name)) params.put("name", name);
-		if(refundStatus != null) params.put("refundStatus", refundStatus);
-		if (StringUtils.isNotBlank(contractNo)) params.put("contractNo", contractNo);
-		if (StringUtils.isNotBlank(starTime)) params.put("starTime", starTime);
-		if (StringUtils.isNotBlank(endTime)) params.put("endTime", endTime+" 23:59:59");
-		Pagination<OrderOutsourceBo> p = (Pagination<OrderOutsourceBo>)findPage("orderOutsourceList", "orderOutsourceCount", params, pageNo, pageSize);
-		return p;
-	}
-
-
-
-	@Override
-	public OrderOutsourceDtails orderOutsourceDtails(String orderNo) {
-		return tOrderOutsourceMapper.selectByOrderNo(orderNo);
-	}
-
-
-
-	@Override
-	public int updateAuditOutsource(OrderOutsourceDtails o) {
-		o.setAuditTime(new Date());
-		TOrderNew t=new TOrderNew();
-		TOrderNew t2=tOrderNewMapper.selectByPrimaryKey(o.getOrderNo());
-		List<String> aids = new ArrayList<>();
-		Integer type=null;
-		t.setOrderNo(o.getOrderNo());
-		if (o.getRefundStatus()==1) {
-			t.setOrderStatus(2);//订单审核标记通过
-			t.setProcessStatus(ProcessStatus.YPCWZY.getCode());
-			addOrderLog(o.getOrderNo(),OrderLogProcess.WBSH.getCode());
-			aids.add(organizationManagementMapper.selectByPrimaryKey(t2.getOrderDep()).getFinanceId());
-			type=NoticeStatus.ORDER_OUTSOURCE_YES.getCode();
-		}else {
-			t.setOrderStatus(1);
-			t.setProcessStatus(ProcessStatus.YPYXGLY.getCode());
-			addOrderLog(o.getOrderNo(),OrderLogProcess.WBBH.getCode());
-			aids.addAll(adminMapper.listNameByDepAndName(adminMapper.getDeptNameByAid(t2.getSalesmanId()).getDepartmentId(), "营销管理员"));
-			type=NoticeStatus.ORDER_OUTSOURCE_NO.getCode();
-		}
-		tOrderNewMapper.updateByPrimaryKeySelective(t);
-		orderNewService.pushGeneralSendNoticeAndEmail(aids, type,t2.getOrderNo(), TokenManager.getAdminId(),t2.getApproval());
-		return tOrderOutsourceMapper.updateByPrimaryKeySelective(o);
-	}
-	
-	public void addOrderLog(String orderNo, Integer code) {
-		TOrderLog tl=new TOrderLog();
-		tl.setOrderNo(orderNo);
-		tl.setProcess(code);
-		tl.setAid(TokenManager.getAdminId());
-		tOrderLogMapper.insertSelective(tl);
-		
-	}
-	@SuppressWarnings("unchecked")
-	@Override
-	public Pagination<OrderOutsourceBo> salesmanOrderOutsourceList(String name, String contractNo, String starTime,
-			String endTime, Integer refundStatus, Integer pageNo, Integer pageSize) {
-		Map<String, Object> params = new HashMap<String, Object>();
-		if(pageSize==null||pageSize<0)pageSize=10;
-		if(pageNo==null||pageNo<0)pageNo=1;
-		if (StringUtils.isNotBlank(name)) params.put("name", name);
-		params.put("deps", orderService.selectMyDeps());
-		if(refundStatus != null) params.put("refundStatus", refundStatus);
-		if (StringUtils.isNotBlank(contractNo)) params.put("contractNo", contractNo);
-		if (StringUtils.isNotBlank(starTime)) params.put("starTime", starTime);
-		if (StringUtils.isNotBlank(endTime)) params.put("endTime", endTime+" 23:59:59");
-		Pagination<OrderOutsourceBo> p = (Pagination<OrderOutsourceBo>)findPage("salesmanOrderOutsourceList", "salesmanOrderOutsourceCount", params, pageNo, pageSize);
-		return p;
-	}
-
-}
+package com.goafanti.order.service.impl;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang3.StringUtils;
+import org.hibernate.validator.constraints.Mod11Check.ProcessingDirection;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import com.goafanti.admin.bo.AdminListBo;
+import com.goafanti.common.dao.AdminMapper;
+import com.goafanti.common.dao.OrganizationManagementMapper;
+import com.goafanti.common.dao.OutsourceOrganizationMapper;
+import com.goafanti.common.dao.TOrderLogMapper;
+import com.goafanti.common.dao.TOrderNewMapper;
+import com.goafanti.common.dao.TOrderOutsourceMapper;
+import com.goafanti.common.dao.TOrderTaskMapper;
+import com.goafanti.common.enums.NoticeStatus;
+import com.goafanti.common.enums.OrderLogProcess;
+import com.goafanti.common.model.OutsourceOrganization;
+import com.goafanti.common.model.TOrderLog;
+import com.goafanti.common.model.TOrderNew;
+import com.goafanti.common.model.TOrderTask;
+import com.goafanti.core.mybatis.BaseMybatisDao;
+import com.goafanti.core.mybatis.page.Pagination;
+import com.goafanti.core.shiro.token.TokenManager;
+import com.goafanti.order.bo.OrderOutsourceBo;
+import com.goafanti.order.bo.OrderOutsourceDtails;
+import com.goafanti.order.bo.OutsourceOrganizationBo;
+import com.goafanti.order.enums.ProcessStatus;
+import com.goafanti.order.service.OrderNewService;
+import com.goafanti.order.service.OrderService;
+import com.goafanti.order.service.OutsourceOrgService;
+import com.goafanti.organization.bo.OrganizationListOut;
+@Service
+public class OutsourceOrgServiceImpl  extends BaseMybatisDao<TOrderOutsourceMapper> implements OutsourceOrgService {
+	@Autowired
+	private OutsourceOrganizationMapper  outsourceOrganizationMapper;
+	@Autowired
+	private OrganizationManagementMapper	organizationManagementMapper;
+	@Autowired
+	private TOrderOutsourceMapper	tOrderOutsourceMapper;
+	@Autowired
+	private TOrderNewMapper	tOrderNewMapper;
+	@Autowired
+	private TOrderTaskMapper	tOrderTaskMapper;
+	@Autowired
+	private OrderService	orderService;
+	@Autowired
+	private TOrderLogMapper	tOrderLogMapper;
+	@Autowired
+	private OrderNewService	orderNewService;
+	@Autowired
+	private AdminMapper	adminMapper;
+	@Override
+	public int addOutsourceOrg(OutsourceOrganization o) {
+		return outsourceOrganizationMapper.insertSelective(o);
+	}
+	@Override
+	public int updateOutsourceOrg(OutsourceOrganization o) {
+		return outsourceOrganizationMapper.updateByPrimaryKeySelective(o);
+	}
+	@Override
+	public int deleteOutsourceOrg(Integer id) {
+		return outsourceOrganizationMapper.deleteByPrimaryKey(id);
+	}
+	@Override
+	public List<OutsourceOrganizationBo> selectOutsourceOrg(String orderNo,String tid) {
+		
+		return outsourceOrganizationMapper.selectOutsourceOrg(orderNo,tid);
+	}
+	@Override
+	public List<OutsourceOrganizationBo> selectOrderOutsourceOrg(String orderNo) {
+		
+		return outsourceOrganizationMapper.selectOrderOutsourceOrg(orderNo);
+	}
+	
+	@Override
+	@SuppressWarnings("unchecked")
+	public Pagination<OrderOutsourceBo> orderOutsourceList(String name, String contractNo, String starTime,
+			String endTime,Integer refundStatus,Integer type, Integer pageNo, Integer pageSize) {
+		Map<String, Object> params = new HashMap<String, Object>();
+		if(pageSize==null||pageSize<0)pageSize=10;
+		if(pageNo==null||pageNo<0)pageNo=1;
+		if (StringUtils.isNotBlank(name)) params.put("name", name);
+		if(refundStatus != null) params.put("refundStatus", refundStatus);
+		if(type != null)  params.put("type", type);
+		if (StringUtils.isNotBlank(contractNo)) params.put("contractNo", contractNo);
+		if (StringUtils.isNotBlank(starTime)) params.put("starTime", starTime);
+		if (StringUtils.isNotBlank(endTime)) params.put("endTime", endTime+" 23:59:59");
+		Pagination<OrderOutsourceBo> p = (Pagination<OrderOutsourceBo>)findPage("orderOutsourceList", "orderOutsourceCount", params, pageNo, pageSize);
+		return p;
+	}
+
+
+
+	@Override
+	public OrderOutsourceDtails orderOutsourceDtails(String orderNo) {
+		return tOrderOutsourceMapper.selectByOrderNo(orderNo);
+	}
+
+
+
+	@Override
+	public int updateAuditOutsource(OrderOutsourceDtails o) {
+		o.setAuditTime(new Date());
+		List<String> aids = new ArrayList<>();
+		Integer type=null;
+		TOrderNew t2=tOrderNewMapper.selectByPrimaryKey(o.getOrderNo());
+		//外包订单
+		if (o.getType()==0) {
+			TOrderNew t=new TOrderNew();
+			t.setOrderNo(o.getOrderNo());
+			if (o.getRefundStatus()==1) {
+				t.setOrderStatus(2);//订单审核标记通过
+				t.setProcessStatus(ProcessStatus.YPCWZY.getCode());
+				addOrderLog(o.getOrderNo(),OrderLogProcess.WBTG.getCode());
+				aids.add(organizationManagementMapper.selectByPrimaryKey(t2.getOrderDep()).getFinanceId());
+				type=NoticeStatus.ORDER_OUTSOURCE_YES.getCode();
+			}else {
+				t.setOrderStatus(1);
+				t.setProcessStatus(ProcessStatus.YPYXGLY.getCode());
+				addOrderLog(o.getOrderNo(),OrderLogProcess.WBBH.getCode());
+				aids.addAll(adminMapper.listNameByDepAndName(adminMapper.getDeptNameByAid(t2.getSalesmanId()).getDepartmentId(), "营销管理员"));
+				type=NoticeStatus.ORDER_OUTSOURCE_NO.getCode();
+			}
+			tOrderNewMapper.updateByPrimaryKeySelective(t);
+		}else if (o.getType()==1) {//项目外包
+			TOrderTask tt=tOrderTaskMapper.selectByPrimaryKey(o.getTid());
+			aids.add(tt.getTaskReceiver());
+			if (o.getRefundStatus()==1) {
+				//把项目更改成外包项目
+				TOrderTask tt2=new TOrderTask();
+				tt2.setId(o.getTid());
+				tt2.setOutsource(1);
+				tOrderTaskMapper.updateByPrimaryKey(tt2);
+				type=NoticeStatus.PROJECT_OUTSOURCE_YES.getCode();
+				addOrderLog(o.getOrderNo(),OrderLogProcess.XMWBTG.getCode());
+			}else {
+				type=NoticeStatus.PROJECT_OUTSOURCE_NO.getCode();
+				addOrderLog(o.getOrderNo(),OrderLogProcess.XMWBBH.getCode());
+			}
+		}
+		orderNewService.pushGeneralSendNoticeAndEmail(aids, type,o.getOrderNo(), TokenManager.getAdminId(),t2.getApproval());
+		return tOrderOutsourceMapper.updateByPrimaryKeySelective(o);
+	}
+	
+	public void addOrderLog(String orderNo, Integer code) {
+		TOrderLog tl=new TOrderLog();
+		tl.setOrderNo(orderNo);
+		tl.setProcess(code);
+		tl.setAid(TokenManager.getAdminId());
+		tOrderLogMapper.insertSelective(tl);
+		
+	}
+	@SuppressWarnings("unchecked")
+	@Override
+	public Pagination<OrderOutsourceBo> salesmanOrderOutsourceList(String name, String contractNo, String starTime,
+			String endTime, Integer refundStatus, Integer pageNo, Integer pageSize) {
+		Map<String, Object> params = new HashMap<String, Object>();
+		if(pageSize==null||pageSize<0)pageSize=10;
+		if(pageNo==null||pageNo<0)pageNo=1;
+		if (StringUtils.isNotBlank(name)) params.put("name", name);
+		params.put("deps", orderService.selectMyDeps());
+		if(refundStatus != null) params.put("refundStatus", refundStatus);
+		if (StringUtils.isNotBlank(contractNo)) params.put("contractNo", contractNo);
+		if (StringUtils.isNotBlank(starTime)) params.put("starTime", starTime);
+		if (StringUtils.isNotBlank(endTime)) params.put("endTime", endTime+" 23:59:59");
+		Pagination<OrderOutsourceBo> p = (Pagination<OrderOutsourceBo>)findPage("salesmanOrderOutsourceList", "salesmanOrderOutsourceCount", params, pageNo, pageSize);
+		return p;
+	}
+
+}

+ 2 - 2
src/main/resources/props/config_local.properties

@@ -60,12 +60,12 @@ template.cacheable=false
 portal.host=//sf.jishutao.com/portal/2.0.6
 avatar.upload.host=//sb.jishutao.com/upload
 #连接开发
-#static.host=//sb.jishutao.com/1.1.31
+#static.host=//sb.jishutao.com/1.1.32
 #avatar.host=//sb.jishutao.com
 
 #连测试
 avatar.host=//static.jishutao.com
-static.host=//static.jishutao.com/1.1.31
+static.host=//static.jishutao.com/1.1.32
 
 upload.path=F:/data/public/upload
 upload.private.path=F:/data/private/upload