|
|
@@ -14,6 +14,7 @@ import com.goafanti.common.dao.*;
|
|
|
import com.goafanti.common.enums.NoticeStatus;
|
|
|
import com.goafanti.common.model.Admin;
|
|
|
import com.goafanti.common.model.TChangeTask;
|
|
|
+import com.goafanti.common.model.TOrderNew;
|
|
|
import com.goafanti.core.shiro.token.TokenManager;
|
|
|
import com.goafanti.order.bo.NewOrderChangeBo;
|
|
|
import com.goafanti.order.enums.OrderChangeProcess;
|
|
|
@@ -169,4 +170,23 @@ public class AsyncUtils {
|
|
|
if (str.length()>1)return str.substring(0,str.length()-1);
|
|
|
else return "暂无";
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param orderNo 订单编号
|
|
|
+ * @param type 发送对象 0营销管理员
|
|
|
+ */
|
|
|
+ public void addProjectSotpNotic(String orderNo, Integer type,String ids) {
|
|
|
+ if (type==0){
|
|
|
+ String str=String.format("项目发起暂停,订单编号[%s]项目编号[%s],请及时审核",orderNo,ids);
|
|
|
+ TOrderNew tOrderNew = tOrderNewMapper.selectByPrimaryKey(orderNo);
|
|
|
+ List<Admin> admins = adminMapper.selectAdminByRoleType(AFTConstants.SALESMAN_ADMIN);
|
|
|
+ for (Admin admin : admins) {
|
|
|
+ addNotic(NoticeStatus.PROJECT_START.getCode(),admin.getId(), str);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|