|
@@ -282,6 +282,7 @@ public class DuxiaomanMaterialInfoServiceImpl extends ServiceImpl<DuxiaomanMater
|
|
|
if (!Check.isNull(resultJson) && resultJson.getInteger("retCode") == 0) {
|
|
|
JSONObject result = resultJson.getJSONObject("result");
|
|
|
Integer auditStatus = result.getInteger("audit_status");
|
|
|
+ auditStatus = auditStatus == 1 ? 101 : auditStatus;
|
|
|
|
|
|
materialInfo.setStatus(auditStatus);
|
|
|
materialInfo.setConfirmTime(result.getString("audit_time"));
|
|
@@ -292,7 +293,12 @@ public class DuxiaomanMaterialInfoServiceImpl extends ServiceImpl<DuxiaomanMater
|
|
|
}
|
|
|
if ("SCRIPT".equals(materialInfo.getType())) {
|
|
|
Project project = projectService.getById(materialInfo.getProjectId());
|
|
|
- String text = messageTemplate.getDuXiaoManMaterialTemplate(materialInfo.getProductName(), project.getProjectName(), materialInfo.getMaterialName(), materialInfo.getRefuseReason(), true);
|
|
|
+ String text = null;
|
|
|
+ if (auditStatus == 4) {
|
|
|
+ text = messageTemplate.getDuXiaoManMaterialTemplate(materialInfo.getProductName(), project.getProjectName(), materialInfo.getMaterialName(), materialInfo.getRefuseReason(), false);
|
|
|
+ } else if (auditStatus == 3) {
|
|
|
+ text = messageTemplate.getDuXiaoManMaterialTemplate(materialInfo.getProductName(), project.getProjectName(), materialInfo.getMaterialName(), materialInfo.getRefuseReason(), true);
|
|
|
+ }
|
|
|
sendMessageService.sendMessage(materialInfo.getUserId(), text);
|
|
|
}
|
|
|
} else {
|