|
@@ -41,6 +41,19 @@ public class ParmSettingController{
|
|
|
return new AjaxMessage<>(ResultStatus.OK, list);
|
|
|
}
|
|
|
|
|
|
+ @RequestMapping(value = "/findParm", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public AjaxMessage<ParmSettingEntity> findParm(@RequestParam(required = true) Long companyOrgId,@RequestParam(required = true) Integer parmType) {
|
|
|
+ ParmSettingEntity parmSettingEntity = new ParmSettingEntity();
|
|
|
+ parmSettingEntity.setCompanyOrgId(companyOrgId);
|
|
|
+ parmSettingEntity.setParmType(parmType);
|
|
|
+ List<ParmSettingEntity> list = parmSettingService.findList(parmSettingEntity);
|
|
|
+ if (list.size() > 0)
|
|
|
+ return new AjaxMessage<>(ResultStatus.OK, list.get(0));
|
|
|
+ else
|
|
|
+ return new AjaxMessage<>(ResultStatus.OBJECT_ERROR);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 新增
|