|
|
@@ -246,6 +246,22 @@ public class STKServiceImpl implements STKService {
|
|
|
return Result.success(map);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public Result businessChanceDistribute(List<BusinessChanceDistributeDTO> businessChanceDistributeDTOS) {
|
|
|
+ if (businessChanceDistributeDTOS.isEmpty()){
|
|
|
+ return Result.error("参数错误!");
|
|
|
+ }
|
|
|
+
|
|
|
+ List<String> Sql = new ArrayList<>();
|
|
|
+ for (BusinessChanceDistributeDTO b : businessChanceDistributeDTOS){
|
|
|
+ Sql.add("update BusinessChance set bc_domancode='"+b.getDomancode()+"',bc_doman='"+b.getDoman()+"',bc_lastdate=to_date('"+b.getLastdate()+"','yyyy-mm-dd') where bc_id="+b.getId()+" and bc_code ='"+b.getCode()+"'");
|
|
|
+ Sql.add("insert into messagelog(ML_ID,ML_DATE,ML_MAN,ML_CONTENT,ML_RESULT,ML_SEARCH,CODE) "
|
|
|
+ + "select messageLog_SEQ.nextval,sysdate,'管理员','商机分配','商机分配','BusinessChance|bc_id='||bc_id,bc_code from BusinessChance where bc_id in(" + b.getId() + ")");
|
|
|
+ }
|
|
|
+ baseDao.execute(Sql);
|
|
|
+ return Result.success();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 组装订单主从表数据
|
|
|
*/
|