Commit 4766da51 authored by 韩桐桐's avatar 韩桐桐

fix(jg):获取企业信息接口修改

parent 1820b958
...@@ -21,7 +21,7 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> { ...@@ -21,7 +21,7 @@ public interface CommonMapper extends BaseMapper<EquipmentCategory> {
Map<String, Object> getUserInfo(String sequenceNbr); Map<String, Object> getUserInfo(String sequenceNbr);
Map<String,Object> getEnterpriseInfo(String sequenceNbr); Map<String,Object> getEnterpriseInfo(String useCode);
List<Map<String,Object>> getEnterpriseEmployee(String unitCode); List<Map<String,Object>> getEnterpriseEmployee(String unitCode);
......
...@@ -36,16 +36,16 @@ ...@@ -36,16 +36,16 @@
AND is_delete = 0 AND is_delete = 0
</select> </select>
<select id="getEnterpriseInfo" resultType="java.util.Map"> <select id="getEnterpriseInfo" resultType="java.util.Map">
SELECT SELECT sequence_nbr sequenceNbr,
sequence_nbr sequenceNbr, supervise_org_code superviseOrgCode,
supervise_org_code superviseOrgCode, supervise_org_name superviseOrgName,
supervise_org_name superviseOrgName, use_code useCode,
use_code useCode, use_unit useUnit,
use_unit useUnit address
FROM FROM tz_base_enterprise_info
tz_base_enterprise_info WHERE use_code = #{useCode}
WHERE AND is_delete = '0'
sequence_nbr =#{sequenceNbr} AND is_delete = '0'; limit 1;
</select> </select>
<select id="getEnterpriseEmployee" resultType="java.util.Map"> <select id="getEnterpriseEmployee" resultType="java.util.Map">
SELECT SELECT
......
...@@ -156,8 +156,8 @@ public class CommonController extends BaseController { ...@@ -156,8 +156,8 @@ public class CommonController extends BaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/getEnterpriseInfo") @GetMapping(value = "/getEnterpriseInfo")
@ApiOperation(httpMethod = "GET", value = "查询企业的基本信息", notes = "查询企业的基本信息") @ApiOperation(httpMethod = "GET", value = "查询企业的基本信息", notes = "查询企业的基本信息")
public ResponseModel<Map<String, Object>> getEnterpriseInfo(@RequestParam(value = "sequenceNbr") String sequenceNbr) { public ResponseModel<Map<String, Object>> getEnterpriseInfo(@RequestParam(value = "useCode") String useCode) {
return ResponseHelper.buildResponse(commonService.getEnterpriseInfo(sequenceNbr)); return ResponseHelper.buildResponse(commonService.getEnterpriseInfo(useCode));
} }
/** /**
......
...@@ -38,7 +38,7 @@ public interface ICommonService { ...@@ -38,7 +38,7 @@ public interface ICommonService {
Map<String, Object> getUserInfo(String sequenceNbr); Map<String, Object> getUserInfo(String sequenceNbr);
Map<String, Object> getEnterpriseInfo(String sequenceNbr); Map<String, Object> getEnterpriseInfo(String useCode);
List<Map<String, Object>> getEnterpriseEmployee(String unitCode); List<Map<String, Object>> getEnterpriseEmployee(String unitCode);
......
...@@ -4,7 +4,6 @@ import cn.hutool.core.bean.BeanUtil; ...@@ -4,7 +4,6 @@ import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUtil; import cn.hutool.core.date.DateUtil;
import cn.hutool.core.io.IoUtil; import cn.hutool.core.io.IoUtil;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.aspose.words.SaveFormat; import com.aspose.words.SaveFormat;
...@@ -69,7 +68,6 @@ import org.springframework.context.annotation.Lazy; ...@@ -69,7 +68,6 @@ import org.springframework.context.annotation.Lazy;
import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource; import org.springframework.core.io.Resource;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.Assert; import org.springframework.util.Assert;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
...@@ -641,8 +639,8 @@ public class CommonServiceImpl implements ICommonService { ...@@ -641,8 +639,8 @@ public class CommonServiceImpl implements ICommonService {
} }
@Override @Override
public Map<String, Object> getEnterpriseInfo(String sequenceNbr) { public Map<String, Object> getEnterpriseInfo(String useCode) {
return commonMapper.getEnterpriseInfo(sequenceNbr); return commonMapper.getEnterpriseInfo(useCode);
} }
@Override @Override
......
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