|
@@ -8,6 +8,7 @@ import com.persagy.adm.steward.basic.utils.RSAUtils;
|
|
|
import com.persagy.adm.steward.entity.ProductFinishNumReq;
|
|
|
import com.persagy.adm.steward.entity.ProjectDeliverReq;
|
|
|
import com.persagy.dmp.basic.model.QueryCriteria;
|
|
|
+import com.persagy.dmp.common.helper.SpringHelper;
|
|
|
import com.persagy.dmp.common.model.response.CommonResult;
|
|
|
import com.persagy.dmp.common.utils.ResultHelper;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -35,19 +36,21 @@ public class AdmDeliverPlanController {
|
|
|
|
|
|
private final AdmDeliverPlanService admDeliverPlanService;
|
|
|
|
|
|
+ @Value("${boss.rsa.privateKey}")
|
|
|
+ private String bossRsaPrivateKey;
|
|
|
+
|
|
|
/**
|
|
|
* 020101-交付计划-处理BOSS产生的交付计划
|
|
|
- * @param projectDeliverReqStr : 交付计划信息
|
|
|
+ * @param requestStr : 交付计划信息
|
|
|
* @return : com.persagy.dmp.common.model.response.CommonResult<java.util.List<java.lang.Void>>
|
|
|
* @author : lijie
|
|
|
* Update By 2022/1/14 17:22
|
|
|
*/
|
|
|
@PostMapping(value = "/relayDeliverPlan")
|
|
|
- public CommonResult<List<Void>> relayDeliverPlan(@RequestBody String projectDeliverReqStr) {
|
|
|
- /* log.info("未解密参数:{}"+projectDeliverReqStr);
|
|
|
- String decode = RSAUtils.decode(projectDeliverReqStr, publicKey);*/
|
|
|
- log.info("接收BOSS交付计划入参:{}"+projectDeliverReqStr);
|
|
|
+ public CommonResult<List<Void>> relayDeliverPlan(@RequestBody String requestStr) {
|
|
|
+ String projectDeliverReqStr = RSAUtils.decode(requestStr, bossRsaPrivateKey);
|
|
|
ProjectDeliverReq projectDeliverReq = JSONObject.parseObject(projectDeliverReqStr, ProjectDeliverReq.class);
|
|
|
+ log.info("接收BOSS交付计划入参:{}"+projectDeliverReq);
|
|
|
admDeliverPlanService.relayDeliverPlan(projectDeliverReq);
|
|
|
return ResultHelper.multi(new ArrayList<>());
|
|
|
}
|