Explorar o código

数据条目增加删除和详情接口

gao.qiang hai 2 semanas
pai
achega
edacaec643

+ 6 - 6
src/main/java/com/bootdo/datas/service/impl/GyDataServiceImpl.java

@@ -90,7 +90,7 @@ public class GyDataServiceImpl implements GyDataService {
             }
 
             String gyUnitId = currUser.getGyUnitId();
-            map.put("gyUnitId", gyUnitId);
+            map.put("unitId", gyUnitId);
             if (!ObjectUtils.isEmpty(city)) {
                 map.put("unitCity", city);
                 map.put("auditStage", "1");
@@ -123,7 +123,7 @@ public class GyDataServiceImpl implements GyDataService {
                 city = sysCity;
             }
             String gyUnitId = currUser.getGyUnitId();
-            map.put("gyUnitId", gyUnitId);
+            map.put("unitId", gyUnitId);
             if (!ObjectUtils.isEmpty(city)) {
                 map.put("unitCity", city);
                 map.put("auditStage", "1");
@@ -682,7 +682,7 @@ public class GyDataServiceImpl implements GyDataService {
             }
 
             String gyUnitId = currUser.getGyUnitId();
-            map.put("gyUnitId", gyUnitId);
+            map.put("unitId", gyUnitId);
             if (!ObjectUtils.isEmpty(city)) {
                 map.put("unitCity", city);
                 map.put("auditStage", "1");
@@ -713,7 +713,7 @@ public class GyDataServiceImpl implements GyDataService {
                 city = sysCity;
             }
             String gyUnitId = currUser.getGyUnitId();
-            map.put("gyUnitId", gyUnitId);
+            map.put("unitId", gyUnitId);
             if (!ObjectUtils.isEmpty(city)) {
                 map.put("unitCity", city);
                 map.put("auditStage", "1");
@@ -810,7 +810,7 @@ public class GyDataServiceImpl implements GyDataService {
             }
 
             String gyUnitId = currUser.getGyUnitId();
-            map.put("gyUnitId", gyUnitId);
+            map.put("unitId", gyUnitId);
             if (!ObjectUtils.isEmpty(city)) {
                 map.put("unitCity", city);
                 map.put("auditStage", "1");
@@ -841,7 +841,7 @@ public class GyDataServiceImpl implements GyDataService {
                 city = sysCity;
             }
             String gyUnitId = currUser.getGyUnitId();
-            map.put("gyUnitId", gyUnitId);
+            map.put("unitId", gyUnitId);
             if (!ObjectUtils.isEmpty(city)) {
                 map.put("unitCity", city);
                 map.put("auditStage", "1");

+ 2 - 2
src/main/java/com/bootdo/datas/service/impl/UnitServiceImpl.java

@@ -63,7 +63,7 @@ public class UnitServiceImpl implements UnitService {
         if (!managerValue.contains(currUser.getDeptId().toString())) {
             map.put("unitProvince", province);
             map.put("unitCity", city);
-            map.put("gyUnitId", gyUnitId);
+            map.put("unitId", gyUnitId);
         }
         return unitDao.list(map);
     }
@@ -83,7 +83,7 @@ public class UnitServiceImpl implements UnitService {
         if (!managerValue.contains(currUser.getDeptId().toString())) {
             map.put("unitProvince", province);
             map.put("unitCity", city);
-            map.put("gyUnitId", gyUnitId);
+            map.put("unitId", gyUnitId);
         }
         return unitDao.count(map);
     }

+ 4 - 4
src/main/resources/mybatis/datas/GyDataMapper.xml

@@ -134,7 +134,7 @@
             </if>
             <if test="nextVerifyDept != null and nextVerifyDept != ''"> and b.next_verify_dept  = #{nextVerifyDept}</if>
             <if test="unitCity != null and unitCity != ''"> and a.UNIT_CITY = #{unitCity}</if>
-            <if test="gyUnitId != null and gyUnitId != ''"> and a.CREDIT_CODE = #{gyUnitId}</if>
+            <if test="unitId != null and unitId != ''"> and a.CREDIT_CODE = #{unitId}</if>
             <if test="creditCode != null and creditCode != ''"> and a.CREDIT_CODE = #{creditCode}</if>
             <if test="gyUnitId != null and gyUnitId != ''"> and b.GY_NUIT_ID = #{gyUnitId}</if>
             <choose>
@@ -192,7 +192,7 @@
             </if>
             <if test="nextVerifyDept != null and nextVerifyDept != ''"> and b.next_verify_dept  = #{nextVerifyDept}</if>
             <if test="unitCity != null and unitCity != ''"> and a.UNIT_CITY = #{unitCity}</if>
-            <if test="gyUnitId != null and gyUnitId != ''"> and a.CREDIT_CODE = #{gyUnitId}</if>
+            <if test="unitId != null and unitId != ''"> and a.CREDIT_CODE = #{unitId}</if>
             <if test="creditCode != null and creditCode != ''"> and a.CREDIT_CODE = #{creditCode}</if>
             <if test="gyUnitId != null and gyUnitId != ''"> and b.GY_NUIT_ID = #{gyUnitId}</if>
             <choose>
@@ -239,7 +239,7 @@
             </if>
             <if test="nextVerifyDept != null and nextVerifyDept != ''">and b.next_verify_dept  = #{nextVerifyDept}</if>
             <if test="unitCity != null and unitCity != ''">and (a.UNIT_CITY = #{unitCity})</if>
-            <if test="gyUnitId != null and gyUnitId != ''"> and a.CREDIT_CODE = #{gyUnitId}</if>
+            <if test="unitId != null and unitId != ''"> and a.CREDIT_CODE = #{unitId}</if>
             <if test="roleId != null and roleId != ''">and b.role_id = #{roleId}</if>
             <if test="dataStatusArrs != null and dataStatusArrs.size > 0"> and b.DATA_STATUS in
                 <foreach item="id" collection="dataStatusArrs" open="(" separator="," close=")">
@@ -290,7 +290,7 @@
             </if>
             <if test="nextVerifyDept != null and nextVerifyDept != ''">and b.next_verify_dept  = #{nextVerifyDept}</if>
             <if test="unitCity != null and unitCity != ''">and (a.UNIT_CITY = #{unitCity})</if>
-            <if test="gyUnitId != null and gyUnitId != ''"> and a.CREDIT_CODE = #{gyUnitId}</if>
+            <if test="unitId != null and unitId != ''"> and a.CREDIT_CODE = #{unitId}</if>
             <if test="roleId != null and roleId != ''">and b.role_id = #{roleId}</if>
             <if test="dataStatusArrs != null and dataStatusArrs.size > 0"> and b.DATA_STATUS in
                 <foreach item="id" collection="dataStatusArrs" open="(" separator="," close=")">

+ 2 - 2
src/main/resources/mybatis/datas/UnitMapper.xml

@@ -74,7 +74,7 @@
             </if>
             <if test="industryTypeOne != null and industryTypeOne != ''">and UNIT_CHARACTER = #{industryTypeOne}</if>
             <if test="unitCity != null and unitCity != ''">and (UNIT_CITY = #{unitCity})</if>
-            <if test="gyUnitId != null and gyUnitId != ''">and (CREDIT_CODE = #{gyUnitId})</if>
+            <if test="unitId != null and unitId != ''">and (CREDIT_CODE = #{unitId})</if>
             <if test="unitProvince != null and unitProvince != ''">and (UNIT_PROVINCE = #{unitProvince})</if>
             <if test="creditCode != null and creditCode != ''">and (CREDIT_CODE = #{creditCode})</if>
         </where>
@@ -100,7 +100,7 @@
             </if>
             <if test="industryTypeOne != null and industryTypeOne != ''">and UNIT_CHARACTER = #{industryTypeOne}</if>
             <if test="unitCity != null and unitCity != ''">and (UNIT_CITY = #{unitCity})</if>
-            <if test="gyUnitId != gyUnitId and unit != ''">and (CREDIT_CODE = #{gyUnitId})</if>
+            <if test="unitId != gyUnitId and unitId != ''">and (CREDIT_CODE = #{unitId})</if>
             <if test="unitProvince != null and unitProvince != ''">and (UNIT_PROVINCE = #{unitProvince})</if>
             <if test="creditCode != null and creditCode != ''">and (CREDIT_CODE = #{creditCode})</if>
         </where>