Commit a4cb62ac authored by 韩桐桐's avatar 韩桐桐

fix(jg):使用登记表

parent 683c3b75
...@@ -753,7 +753,9 @@ public class CommonController extends BaseController { ...@@ -753,7 +753,9 @@ public class CommonController extends BaseController {
@ApiOperation(httpMethod = "POST", value = "使用登记表生成", notes = "使用登记表生成") @ApiOperation(httpMethod = "POST", value = "使用登记表生成", notes = "使用登记表生成")
@PostMapping(value = "/getRegistrationFormUrl") @PostMapping(value = "/getRegistrationFormUrl")
public ResponseModel<Map<String,Object>> getRegistrationFormUrl(@RequestBody JSONObject map) { public ResponseModel<Map<String,Object>> getRegistrationFormUrl(@RequestBody JSONObject map) {
return ResponseHelper.buildResponse(commonService.getRegistrationFormUrl(map)); JSONObject formData = JSONObject.parseObject(JSONObject.toJSONString(map.get("formData")));
String manageType = String.valueOf(map.get("manageType"));
return ResponseHelper.buildResponse(commonService.getRegistrationFormUrl(manageType, formData));
} }
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
......
...@@ -253,7 +253,7 @@ public interface ICommonService { ...@@ -253,7 +253,7 @@ public interface ICommonService {
List<EquipmentClassifyDto> getEquClassifyByCode(String parentCode); List<EquipmentClassifyDto> getEquClassifyByCode(String parentCode);
Map<String,Object> getRegistrationFormUrl(JSONObject map); Map<String, Object> getRegistrationFormUrl(String manageType, JSONObject formData);
void getRegistrationFormStream(JSONObject map,HttpServletResponse response); void getRegistrationFormStream(JSONObject map,HttpServletResponse response);
} }
...@@ -2213,9 +2213,7 @@ public class CommonServiceImpl implements ICommonService { ...@@ -2213,9 +2213,7 @@ public class CommonServiceImpl implements ICommonService {
} }
@Override @Override
public Map<String,Object> getRegistrationFormUrl(JSONObject map){ public Map<String, Object> getRegistrationFormUrl(String manageType, JSONObject formData) {
JSONObject formData = JSONObject.parseObject(JSONObject.toJSONString(map.get("formData")));
String manageType = String.valueOf(map.get("manageType"));
String wordPath ; String wordPath ;
String fileName ; String fileName ;
if (UNIT.equals(manageType)){ if (UNIT.equals(manageType)){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment