|
@@ -10,10 +10,7 @@ import com.simuwang.manage.service.EmailTemplateMappingService;
|
|
|
import com.smppw.common.pojo.ResultVo;
|
|
|
import com.smppw.common.pojo.enums.status.ResultCode;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* 模版设置
|
|
@@ -85,4 +82,23 @@ public class TemplateSettingController {
|
|
|
}
|
|
|
return vo;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 模版设置编辑查询
|
|
|
+ * @param idVO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @SystemLog(value = "模版设置编辑查询")
|
|
|
+ @GetMapping("search-template-setting")
|
|
|
+ public ResultVo searchTemplateSetting(IdVO idVO){
|
|
|
+ ResultVo vo = new ResultVo(ResultCode.SAVE_SUCCESS.getCode());
|
|
|
+ try{
|
|
|
+ EmailTemplateMappingVO emailTemplateMappingVO = emailTemplateMappingService.searchTemplateSetting(idVO.getId());
|
|
|
+ vo.setData(emailTemplateMappingVO);
|
|
|
+ }catch (Exception e){
|
|
|
+ vo.setCode(ResultCode.SAVE_FAILED.getCode());
|
|
|
+ vo.setData(false);
|
|
|
+ }
|
|
|
+ return vo;
|
|
|
+ }
|
|
|
}
|