java110 пре 4 година
родитељ
комит
8cb69618a5

+ 112 - 114
java110-db/src/main/resources/mapper/store/AllocationStorehouseApplyV1ServiceDaoImplMapper.xml

@@ -2,141 +2,139 @@
 <!DOCTYPE mapper
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl">
-
-
-
+<mapper namespace="allocationStorehouseApplyV1ServiceDaoImpl">
 
 
     <!-- 保存调拨申请信息 add by wuxw 2018-07-03 -->
     <insert id="saveAllocationStorehouseApplyInfo" parameterType="Map">
         insert into allocation_storehouse_apply(
-apply_type,apply_id,start_user_id,start_user_name,apply_count,remark,state,store_id,community_id
-) values (
-#{applyType},#{applyId},#{startUserId},#{startUserName},#{applyCount},#{remark},#{state},#{storeId},#{communityId}
-)
+        apply_type,apply_id,start_user_id,start_user_name,apply_count,remark,state,store_id,community_id
+        ) values (
+        #{applyType},#{applyId},#{startUserId},#{startUserName},#{applyCount},#{remark},#{state},#{storeId},#{communityId}
+        )
     </insert>
 
 
-
     <!-- 查询调拨申请信息 add by wuxw 2018-07-03 -->
     <select id="getAllocationStorehouseApplyInfo" parameterType="Map" resultType="Map">
-        select  t.apply_type,t.apply_type applyType,t.apply_id,t.apply_id applyId,t.start_user_id,t.start_user_id startUserId,t.start_user_name,t.start_user_name startUserName,t.apply_count,t.apply_count applyCount,t.remark,t.status_cd,t.status_cd statusCd,t.state,t.store_id,t.store_id storeId,t.community_id,t.community_id communityId 
-from allocation_storehouse_apply t 
-where 1 =1 
-<if test="applyType !=null and applyType != ''">
-   and t.apply_type= #{applyType}
-</if> 
-<if test="applyId !=null and applyId != ''">
-   and t.apply_id= #{applyId}
-</if> 
-<if test="startUserId !=null and startUserId != ''">
-   and t.start_user_id= #{startUserId}
-</if> 
-<if test="startUserName !=null and startUserName != ''">
-   and t.start_user_name= #{startUserName}
-</if> 
-<if test="applyCount !=null and applyCount != ''">
-   and t.apply_count= #{applyCount}
-</if> 
-<if test="remark !=null and remark != ''">
-   and t.remark= #{remark}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="state !=null and state != ''">
-   and t.state= #{state}
-</if> 
-<if test="storeId !=null and storeId != ''">
-   and t.store_id= #{storeId}
-</if> 
-<if test="communityId !=null and communityId != ''">
-   and t.community_id= #{communityId}
-</if> 
-order by t.create_time desc
-<if test="page != -1 and page != null ">
-   limit #{page}, #{row}
-</if> 
+        select t.apply_type,t.apply_type applyType,t.apply_id,t.apply_id applyId,t.start_user_id,t.start_user_id
+        startUserId,t.start_user_name,t.start_user_name startUserName,t.apply_count,t.apply_count
+        applyCount,t.remark,t.status_cd,t.status_cd statusCd,t.state,t.store_id,t.store_id
+        storeId,t.community_id,t.community_id communityId
+        from allocation_storehouse_apply t
+        where 1 =1
+        <if test="applyType !=null and applyType != ''">
+            and t.apply_type= #{applyType}
+        </if>
+        <if test="applyId !=null and applyId != ''">
+            and t.apply_id= #{applyId}
+        </if>
+        <if test="startUserId !=null and startUserId != ''">
+            and t.start_user_id= #{startUserId}
+        </if>
+        <if test="startUserName !=null and startUserName != ''">
+            and t.start_user_name= #{startUserName}
+        </if>
+        <if test="applyCount !=null and applyCount != ''">
+            and t.apply_count= #{applyCount}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="state !=null and state != ''">
+            and t.state= #{state}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
+        order by t.create_time desc
+        <if test="page != -1 and page != null ">
+            limit #{page}, #{row}
+        </if>
 
     </select>
 
 
-
-
     <!-- 修改调拨申请信息 add by wuxw 2018-07-03 -->
     <update id="updateAllocationStorehouseApplyInfo" parameterType="Map">
-        update  allocation_storehouse_apply t set t.status_cd = #{statusCd}
-<if test="newBId != null and newBId != ''">
-,t.b_id = #{newBId}
-</if> 
-<if test="applyType !=null and applyType != ''">
-, t.apply_type= #{applyType}
-</if> 
-<if test="startUserId !=null and startUserId != ''">
-, t.start_user_id= #{startUserId}
-</if> 
-<if test="startUserName !=null and startUserName != ''">
-, t.start_user_name= #{startUserName}
-</if> 
-<if test="applyCount !=null and applyCount != ''">
-, t.apply_count= #{applyCount}
-</if> 
-<if test="remark !=null and remark != ''">
-, t.remark= #{remark}
-</if> 
-<if test="state !=null and state != ''">
-, t.state= #{state}
-</if> 
-<if test="storeId !=null and storeId != ''">
-, t.store_id= #{storeId}
-</if> 
-<if test="communityId !=null and communityId != ''">
-, t.community_id= #{communityId}
-</if> 
- where 1=1 <if test="applyId !=null and applyId != ''">
-and t.apply_id= #{applyId}
-</if> 
+        update allocation_storehouse_apply t set t.status_cd = #{statusCd}
+        <if test="newBId != null and newBId != ''">
+            ,t.b_id = #{newBId}
+        </if>
+        <if test="applyType !=null and applyType != ''">
+            , t.apply_type= #{applyType}
+        </if>
+        <if test="startUserId !=null and startUserId != ''">
+            , t.start_user_id= #{startUserId}
+        </if>
+        <if test="startUserName !=null and startUserName != ''">
+            , t.start_user_name= #{startUserName}
+        </if>
+        <if test="applyCount !=null and applyCount != ''">
+            , t.apply_count= #{applyCount}
+        </if>
+        <if test="remark !=null and remark != ''">
+            , t.remark= #{remark}
+        </if>
+        <if test="state !=null and state != ''">
+            , t.state= #{state}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            , t.store_id= #{storeId}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            , t.community_id= #{communityId}
+        </if>
+        where 1=1
+        <if test="applyId !=null and applyId != ''">
+            and t.apply_id= #{applyId}
+        </if>
 
     </update>
 
     <!-- 查询调拨申请数量 add by wuxw 2018-07-03 -->
-     <select id="queryAllocationStorehouseApplysCount" parameterType="Map" resultType="Map">
-        select  count(1) count 
-from allocation_storehouse_apply t 
-where 1 =1 
-<if test="applyType !=null and applyType != ''">
-   and t.apply_type= #{applyType}
-</if> 
-<if test="applyId !=null and applyId != ''">
-   and t.apply_id= #{applyId}
-</if> 
-<if test="startUserId !=null and startUserId != ''">
-   and t.start_user_id= #{startUserId}
-</if> 
-<if test="startUserName !=null and startUserName != ''">
-   and t.start_user_name= #{startUserName}
-</if> 
-<if test="applyCount !=null and applyCount != ''">
-   and t.apply_count= #{applyCount}
-</if> 
-<if test="remark !=null and remark != ''">
-   and t.remark= #{remark}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="state !=null and state != ''">
-   and t.state= #{state}
-</if> 
-<if test="storeId !=null and storeId != ''">
-   and t.store_id= #{storeId}
-</if> 
-<if test="communityId !=null and communityId != ''">
-   and t.community_id= #{communityId}
-</if> 
+    <select id="queryAllocationStorehouseApplysCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from allocation_storehouse_apply t
+        where 1 =1
+        <if test="applyType !=null and applyType != ''">
+            and t.apply_type= #{applyType}
+        </if>
+        <if test="applyId !=null and applyId != ''">
+            and t.apply_id= #{applyId}
+        </if>
+        <if test="startUserId !=null and startUserId != ''">
+            and t.start_user_id= #{startUserId}
+        </if>
+        <if test="startUserName !=null and startUserName != ''">
+            and t.start_user_name= #{startUserName}
+        </if>
+        <if test="applyCount !=null and applyCount != ''">
+            and t.apply_count= #{applyCount}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="state !=null and state != ''">
+            and t.state= #{state}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
+        <if test="communityId !=null and communityId != ''">
+            and t.community_id= #{communityId}
+        </if>
 
 
-     </select>
+    </select>
 
 </mapper>

+ 139 - 141
java110-db/src/main/resources/mapper/store/AllocationStorehouseV1ServiceDaoImplMapper.xml

@@ -2,168 +2,166 @@
 <!DOCTYPE mapper
         PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
-<mapper namespace="allocationAllocationStorehousehouseV1ServiceDaoImpl">
-
-
-
+<mapper namespace="allocationStorehouseV1ServiceDaoImpl">
 
 
     <!-- 保存调拨信息 add by wuxw 2018-07-03 -->
     <insert id="saveAllocationStorehouseInfo" parameterType="Map">
         insert into allocation_storehouse(
-as_id,original_stock,remark,store_id,res_id,sh_id_z,apply_id,res_name,start_user_id,sh_id_a,start_user_name,stock
-) values (
-#{asId},#{originalStock},#{remark},#{storeId},#{resId},#{shIdZ},#{applyId},#{resName},#{startUserId},#{shIdA},#{startUserName},#{stock}
-)
+        as_id,original_stock,remark,store_id,res_id,sh_id_z,apply_id,res_name,start_user_id,sh_id_a,start_user_name,stock
+        ) values (
+        #{asId},#{originalStock},#{remark},#{storeId},#{resId},#{shIdz},#{applyId},#{resName},#{startUserId},#{shIda},#{startUserName},#{stock}
+        )
     </insert>
 
 
-
     <!-- 查询调拨信息 add by wuxw 2018-07-03 -->
     <select id="getAllocationStorehouseInfo" parameterType="Map" resultType="Map">
-        select  t.as_id,t.as_id asId,t.original_stock,t.original_stock originalStock,t.status_cd,t.status_cd statusCd,t.remark,t.store_id,t.store_id storeId,t.res_id,t.res_id resId,t.sh_id_z,t.sh_id_z shIdZ,t.apply_id,t.apply_id applyId,t.res_name,t.res_name resName,t.start_user_id,t.start_user_id startUserId,t.sh_id_a,t.sh_id_a shIdA,t.start_user_name,t.start_user_name startUserName,t.stock 
-from allocation_storehouse t 
-where 1 =1 
-<if test="asId !=null and asId != ''">
-   and t.as_id= #{asId}
-</if> 
-<if test="originalStock !=null and originalStock != ''">
-   and t.original_stock= #{originalStock}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="remark !=null and remark != ''">
-   and t.remark= #{remark}
-</if> 
-<if test="storeId !=null and storeId != ''">
-   and t.store_id= #{storeId}
-</if> 
-<if test="resId !=null and resId != ''">
-   and t.res_id= #{resId}
-</if> 
-<if test="shIdZ !=null and shIdZ != ''">
-   and t.sh_id_z= #{shIdZ}
-</if> 
-<if test="applyId !=null and applyId != ''">
-   and t.apply_id= #{applyId}
-</if> 
-<if test="resName !=null and resName != ''">
-   and t.res_name= #{resName}
-</if> 
-<if test="startUserId !=null and startUserId != ''">
-   and t.start_user_id= #{startUserId}
-</if> 
-<if test="shIdA !=null and shIdA != ''">
-   and t.sh_id_a= #{shIdA}
-</if> 
-<if test="startUserName !=null and startUserName != ''">
-   and t.start_user_name= #{startUserName}
-</if> 
-<if test="stock !=null and stock != ''">
-   and t.stock= #{stock}
-</if> 
-order by t.create_time desc
-<if test="page != -1 and page != null ">
-   limit #{page}, #{row}
-</if> 
+        select t.as_id,t.as_id asId,t.original_stock,t.original_stock originalStock,t.status_cd,t.status_cd
+        statusCd,t.remark,t.store_id,t.store_id storeId,t.res_id,t.res_id resId,t.sh_id_z,t.sh_id_z
+        shIdz,t.apply_id,t.apply_id applyId,t.res_name,t.res_name resName,t.start_user_id,t.start_user_id
+        startUserId,t.sh_id_a,t.sh_id_a shIda,t.start_user_name,t.start_user_name startUserName,t.stock
+        from allocation_storehouse t
+        where 1 =1
+        <if test="asId !=null and asId != ''">
+            and t.as_id= #{asId}
+        </if>
+        <if test="originalStock !=null and originalStock != ''">
+            and t.original_stock= #{originalStock}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
+        <if test="shIdz !=null and shIdz != ''">
+            and t.sh_id_z= #{shIdz}
+        </if>
+        <if test="applyId !=null and applyId != ''">
+            and t.apply_id= #{applyId}
+        </if>
+        <if test="resName !=null and resName != ''">
+            and t.res_name= #{resName}
+        </if>
+        <if test="startUserId !=null and startUserId != ''">
+            and t.start_user_id= #{startUserId}
+        </if>
+        <if test="shIda !=null and shIda != ''">
+            and t.sh_id_a= #{shIda}
+        </if>
+        <if test="startUserName !=null and startUserName != ''">
+            and t.start_user_name= #{startUserName}
+        </if>
+        <if test="stock !=null and stock != ''">
+            and t.stock= #{stock}
+        </if>
+        order by t.create_time desc
+        <if test="page != -1 and page != null ">
+            limit #{page}, #{row}
+        </if>
 
     </select>
 
 
-
-
     <!-- 修改调拨信息 add by wuxw 2018-07-03 -->
     <update id="updateAllocationStorehouseInfo" parameterType="Map">
-        update  allocation_storehouse t set t.status_cd = #{statusCd}
-<if test="newBId != null and newBId != ''">
-,t.b_id = #{newBId}
-</if> 
-<if test="originalStock !=null and originalStock != ''">
-, t.original_stock= #{originalStock}
-</if> 
-<if test="remark !=null and remark != ''">
-, t.remark= #{remark}
-</if> 
-<if test="storeId !=null and storeId != ''">
-, t.store_id= #{storeId}
-</if> 
-<if test="resId !=null and resId != ''">
-, t.res_id= #{resId}
-</if> 
-<if test="shIdZ !=null and shIdZ != ''">
-, t.sh_id_z= #{shIdZ}
-</if> 
-<if test="applyId !=null and applyId != ''">
-, t.apply_id= #{applyId}
-</if> 
-<if test="resName !=null and resName != ''">
-, t.res_name= #{resName}
-</if> 
-<if test="startUserId !=null and startUserId != ''">
-, t.start_user_id= #{startUserId}
-</if> 
-<if test="shIdA !=null and shIdA != ''">
-, t.sh_id_a= #{shIdA}
-</if> 
-<if test="startUserName !=null and startUserName != ''">
-, t.start_user_name= #{startUserName}
-</if> 
-<if test="stock !=null and stock != ''">
-, t.stock= #{stock}
-</if> 
- where 1=1 <if test="asId !=null and asId != ''">
-and t.as_id= #{asId}
-</if> 
+        update allocation_storehouse t set t.status_cd = #{statusCd}
+        <if test="newBId != null and newBId != ''">
+            ,t.b_id = #{newBId}
+        </if>
+        <if test="originalStock !=null and originalStock != ''">
+            , t.original_stock= #{originalStock}
+        </if>
+        <if test="remark !=null and remark != ''">
+            , t.remark= #{remark}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            , t.store_id= #{storeId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            , t.res_id= #{resId}
+        </if>
+        <if test="shIdz !=null and shIdz != ''">
+            , t.sh_id_z= #{shIdz}
+        </if>
+        <if test="applyId !=null and applyId != ''">
+            , t.apply_id= #{applyId}
+        </if>
+        <if test="resName !=null and resName != ''">
+            , t.res_name= #{resName}
+        </if>
+        <if test="startUserId !=null and startUserId != ''">
+            , t.start_user_id= #{startUserId}
+        </if>
+        <if test="shIda !=null and shIda != ''">
+            , t.sh_id_a= #{shIda}
+        </if>
+        <if test="startUserName !=null and startUserName != ''">
+            , t.start_user_name= #{startUserName}
+        </if>
+        <if test="stock !=null and stock != ''">
+            , t.stock= #{stock}
+        </if>
+        where 1=1
+        <if test="asId !=null and asId != ''">
+            and t.as_id= #{asId}
+        </if>
 
     </update>
 
     <!-- 查询调拨数量 add by wuxw 2018-07-03 -->
-     <select id="queryAllocationStorehousesCount" parameterType="Map" resultType="Map">
-        select  count(1) count 
-from allocation_storehouse t 
-where 1 =1 
-<if test="asId !=null and asId != ''">
-   and t.as_id= #{asId}
-</if> 
-<if test="originalStock !=null and originalStock != ''">
-   and t.original_stock= #{originalStock}
-</if> 
-<if test="statusCd !=null and statusCd != ''">
-   and t.status_cd= #{statusCd}
-</if> 
-<if test="remark !=null and remark != ''">
-   and t.remark= #{remark}
-</if> 
-<if test="storeId !=null and storeId != ''">
-   and t.store_id= #{storeId}
-</if> 
-<if test="resId !=null and resId != ''">
-   and t.res_id= #{resId}
-</if> 
-<if test="shIdZ !=null and shIdZ != ''">
-   and t.sh_id_z= #{shIdZ}
-</if> 
-<if test="applyId !=null and applyId != ''">
-   and t.apply_id= #{applyId}
-</if> 
-<if test="resName !=null and resName != ''">
-   and t.res_name= #{resName}
-</if> 
-<if test="startUserId !=null and startUserId != ''">
-   and t.start_user_id= #{startUserId}
-</if> 
-<if test="shIdA !=null and shIdA != ''">
-   and t.sh_id_a= #{shIdA}
-</if> 
-<if test="startUserName !=null and startUserName != ''">
-   and t.start_user_name= #{startUserName}
-</if> 
-<if test="stock !=null and stock != ''">
-   and t.stock= #{stock}
-</if> 
+    <select id="queryAllocationStorehousesCount" parameterType="Map" resultType="Map">
+        select count(1) count
+        from allocation_storehouse t
+        where 1 =1
+        <if test="asId !=null and asId != ''">
+            and t.as_id= #{asId}
+        </if>
+        <if test="originalStock !=null and originalStock != ''">
+            and t.original_stock= #{originalStock}
+        </if>
+        <if test="statusCd !=null and statusCd != ''">
+            and t.status_cd= #{statusCd}
+        </if>
+        <if test="remark !=null and remark != ''">
+            and t.remark= #{remark}
+        </if>
+        <if test="storeId !=null and storeId != ''">
+            and t.store_id= #{storeId}
+        </if>
+        <if test="resId !=null and resId != ''">
+            and t.res_id= #{resId}
+        </if>
+        <if test="shIdz !=null and shIdz != ''">
+            and t.sh_id_z= #{shIdz}
+        </if>
+        <if test="applyId !=null and applyId != ''">
+            and t.apply_id= #{applyId}
+        </if>
+        <if test="resName !=null and resName != ''">
+            and t.res_name= #{resName}
+        </if>
+        <if test="startUserId !=null and startUserId != ''">
+            and t.start_user_id= #{startUserId}
+        </if>
+        <if test="shIda !=null and shIda != ''">
+            and t.sh_id_a= #{shIda}
+        </if>
+        <if test="startUserName !=null and startUserName != ''">
+            and t.start_user_name= #{startUserName}
+        </if>
+        <if test="stock !=null and stock != ''">
+            and t.stock= #{stock}
+        </if>
 
 
-     </select>
+    </select>
 
 </mapper>

+ 5 - 5
service-store/src/main/java/com/java110/store/dao/impl/AllocationStorehouseApplyV1ServiceDaoImpl.java

@@ -37,7 +37,7 @@ import java.util.Map;
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Service("allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl")
+@Service("allocationStorehouseApplyV1ServiceDaoImpl")
 public class AllocationStorehouseApplyV1ServiceDaoImpl extends BaseServiceDao implements IAllocationStorehouseApplyV1ServiceDao {
 
     private static Logger logger = LoggerFactory.getLogger(AllocationStorehouseApplyV1ServiceDaoImpl.class);
@@ -55,7 +55,7 @@ public class AllocationStorehouseApplyV1ServiceDaoImpl extends BaseServiceDao im
     public int saveAllocationStorehouseApplyInfo(Map info) throws DAOException {
         logger.debug("保存 saveAllocationStorehouseApplyInfo 入参 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.insert("allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.saveAllocationStorehouseApplyInfo",info);
+        int saveFlag = sqlSessionTemplate.insert("allocationStorehouseApplyV1ServiceDaoImpl.saveAllocationStorehouseApplyInfo",info);
 
         return saveFlag;
     }
@@ -71,7 +71,7 @@ public class AllocationStorehouseApplyV1ServiceDaoImpl extends BaseServiceDao im
     public List<Map> getAllocationStorehouseApplyInfo(Map info) throws DAOException {
         logger.debug("查询 getAllocationStorehouseApplyInfo 入参 info : {}",info);
 
-        List<Map> businessAllocationStorehouseApplyInfos = sqlSessionTemplate.selectList("allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.getAllocationStorehouseApplyInfo",info);
+        List<Map> businessAllocationStorehouseApplyInfos = sqlSessionTemplate.selectList("allocationStorehouseApplyV1ServiceDaoImpl.getAllocationStorehouseApplyInfo",info);
 
         return businessAllocationStorehouseApplyInfos;
     }
@@ -86,7 +86,7 @@ public class AllocationStorehouseApplyV1ServiceDaoImpl extends BaseServiceDao im
     public int updateAllocationStorehouseApplyInfo(Map info) throws DAOException {
         logger.debug("修改 updateAllocationStorehouseApplyInfo 入参 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.update("allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.updateAllocationStorehouseApplyInfo",info);
+        int saveFlag = sqlSessionTemplate.update("allocationStorehouseApplyV1ServiceDaoImpl.updateAllocationStorehouseApplyInfo",info);
 
         return saveFlag;
     }
@@ -100,7 +100,7 @@ public class AllocationStorehouseApplyV1ServiceDaoImpl extends BaseServiceDao im
     public int queryAllocationStorehouseApplysCount(Map info) {
         logger.debug("查询 queryAllocationStorehouseApplysCount 入参 info : {}",info);
 
-        List<Map> businessAllocationStorehouseApplyInfos = sqlSessionTemplate.selectList("allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.queryAllocationStorehouseApplysCount", info);
+        List<Map> businessAllocationStorehouseApplyInfos = sqlSessionTemplate.selectList("allocationStorehouseApplyV1ServiceDaoImpl.queryAllocationStorehouseApplysCount", info);
         if (businessAllocationStorehouseApplyInfos.size() < 1) {
             return 0;
         }

+ 5 - 5
service-store/src/main/java/com/java110/store/dao/impl/AllocationStorehouseV1ServiceDaoImpl.java

@@ -37,7 +37,7 @@ import java.util.Map;
  * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下
  * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行
  */
-@Service("allocationAllocationStorehousehouseV1ServiceDaoImpl")
+@Service("allocationStorehouseV1ServiceDaoImpl")
 public class AllocationStorehouseV1ServiceDaoImpl extends BaseServiceDao implements IAllocationStorehouseV1ServiceDao {
 
     private static Logger logger = LoggerFactory.getLogger(AllocationStorehouseV1ServiceDaoImpl.class);
@@ -55,7 +55,7 @@ public class AllocationStorehouseV1ServiceDaoImpl extends BaseServiceDao impleme
     public int saveAllocationStorehouseInfo(Map info) throws DAOException {
         logger.debug("保存 saveAllocationStorehouseInfo 入参 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.insert("allocationAllocationStorehousehouseV1ServiceDaoImpl.saveAllocationStorehouseInfo",info);
+        int saveFlag = sqlSessionTemplate.insert("allocationStorehouseV1ServiceDaoImpl.saveAllocationStorehouseInfo",info);
 
         return saveFlag;
     }
@@ -71,7 +71,7 @@ public class AllocationStorehouseV1ServiceDaoImpl extends BaseServiceDao impleme
     public List<Map> getAllocationStorehouseInfo(Map info) throws DAOException {
         logger.debug("查询 getAllocationStorehouseInfo 入参 info : {}",info);
 
-        List<Map> businessAllocationStorehouseInfos = sqlSessionTemplate.selectList("allocationAllocationStorehousehouseV1ServiceDaoImpl.getAllocationStorehouseInfo",info);
+        List<Map> businessAllocationStorehouseInfos = sqlSessionTemplate.selectList("allocationStorehouseV1ServiceDaoImpl.getAllocationStorehouseInfo",info);
 
         return businessAllocationStorehouseInfos;
     }
@@ -86,7 +86,7 @@ public class AllocationStorehouseV1ServiceDaoImpl extends BaseServiceDao impleme
     public int updateAllocationStorehouseInfo(Map info) throws DAOException {
         logger.debug("修改 updateAllocationStorehouseInfo 入参 info : {}",info);
 
-        int saveFlag = sqlSessionTemplate.update("allocationAllocationStorehousehouseV1ServiceDaoImpl.updateAllocationStorehouseInfo",info);
+        int saveFlag = sqlSessionTemplate.update("allocationStorehouseV1ServiceDaoImpl.updateAllocationStorehouseInfo",info);
 
         return saveFlag;
     }
@@ -100,7 +100,7 @@ public class AllocationStorehouseV1ServiceDaoImpl extends BaseServiceDao impleme
     public int queryAllocationStorehousesCount(Map info) {
         logger.debug("查询 queryAllocationStorehousesCount 入参 info : {}",info);
 
-        List<Map> businessAllocationStorehouseInfos = sqlSessionTemplate.selectList("allocationAllocationStorehousehouseV1ServiceDaoImpl.queryAllocationStorehousesCount", info);
+        List<Map> businessAllocationStorehouseInfos = sqlSessionTemplate.selectList("allocationStorehouseV1ServiceDaoImpl.queryAllocationStorehousesCount", info);
         if (businessAllocationStorehouseInfos.size() < 1) {
             return 0;
         }

+ 18 - 19
service-store/src/main/java/com/java110/store/smo/impl/AllocationStorehouseApplyV1InnerServiceSMOImpl.java

@@ -16,19 +16,17 @@
 package com.java110.store.smo.impl;
 
 
+import com.java110.core.base.smo.BaseServiceSMO;
+import com.java110.dto.PageDto;
 import com.java110.dto.allocationStorehouseApply.AllocationStorehouseApplyDto;
+import com.java110.intf.store.IAllocationStorehouseApplyV1InnerServiceSMO;
 import com.java110.po.allocationStorehouseApply.AllocationStorehouseApplyPo;
 import com.java110.store.dao.IAllocationStorehouseApplyV1ServiceDao;
-import com.java110.intf.store.IAllocationStorehouseApplyV1InnerServiceSMO;
 import com.java110.utils.util.BeanConvertUtil;
-import com.java110.core.base.smo.BaseServiceSMO;
-import com.java110.dto.user.UserDto;
-import com.java110.dto.PageDto;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.RequestBody;
 import org.springframework.web.bind.annotation.RestController;
 
-import java.util.ArrayList;
 import java.util.List;
 
 /**
@@ -43,30 +41,30 @@ import java.util.List;
 public class AllocationStorehouseApplyV1InnerServiceSMOImpl extends BaseServiceSMO implements IAllocationStorehouseApplyV1InnerServiceSMO {
 
     @Autowired
-    private IAllocationStorehouseApplyV1ServiceDao allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl;
+    private IAllocationStorehouseApplyV1ServiceDao allocationStorehouseApplyV1ServiceDaoImpl;
 
 
     @Override
     public int saveAllocationStorehouseApply(@RequestBody AllocationStorehouseApplyPo allocationAllocationStorehouseApplyhouseApplyPo) {
-        int saveFlag = allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.saveAllocationStorehouseApplyInfo(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyPo));
+        int saveFlag = allocationStorehouseApplyV1ServiceDaoImpl.saveAllocationStorehouseApplyInfo(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyPo));
         return saveFlag;
     }
 
-     @Override
-    public int updateAllocationStorehouseApply(@RequestBody  AllocationStorehouseApplyPo allocationAllocationStorehouseApplyhouseApplyPo) {
-        int saveFlag = allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.updateAllocationStorehouseApplyInfo(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyPo));
+    @Override
+    public int updateAllocationStorehouseApply(@RequestBody AllocationStorehouseApplyPo allocationAllocationStorehouseApplyhouseApplyPo) {
+        int saveFlag = allocationStorehouseApplyV1ServiceDaoImpl.updateAllocationStorehouseApplyInfo(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyPo));
         return saveFlag;
     }
 
-     @Override
-    public int deleteAllocationStorehouseApply(@RequestBody  AllocationStorehouseApplyPo allocationAllocationStorehouseApplyhouseApplyPo) {
-       allocationAllocationStorehouseApplyhouseApplyPo.setStatusCd("1");
-       int saveFlag = allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.updateAllocationStorehouseApplyInfo(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyPo));
-       return saveFlag;
+    @Override
+    public int deleteAllocationStorehouseApply(@RequestBody AllocationStorehouseApplyPo allocationAllocationStorehouseApplyhouseApplyPo) {
+        allocationAllocationStorehouseApplyhouseApplyPo.setStatusCd("1");
+        int saveFlag = allocationStorehouseApplyV1ServiceDaoImpl.updateAllocationStorehouseApplyInfo(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyPo));
+        return saveFlag;
     }
 
     @Override
-    public List<AllocationStorehouseApplyDto> queryAllocationStorehouseApplys(@RequestBody  AllocationStorehouseApplyDto allocationAllocationStorehouseApplyhouseApplyDto) {
+    public List<AllocationStorehouseApplyDto> queryAllocationStorehouseApplys(@RequestBody AllocationStorehouseApplyDto allocationAllocationStorehouseApplyhouseApplyDto) {
 
         //校验是否传了 分页信息
 
@@ -76,14 +74,15 @@ public class AllocationStorehouseApplyV1InnerServiceSMOImpl extends BaseServiceS
             allocationAllocationStorehouseApplyhouseApplyDto.setPage((page - 1) * allocationAllocationStorehouseApplyhouseApplyDto.getRow());
         }
 
-        List<AllocationStorehouseApplyDto> allocationAllocationStorehouseApplyhouseApplys = BeanConvertUtil.covertBeanList(allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.getAllocationStorehouseApplyInfo(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyDto)), AllocationStorehouseApplyDto.class);
+        List<AllocationStorehouseApplyDto> allocationStorehouseApplyDtos = BeanConvertUtil.covertBeanList(allocationStorehouseApplyV1ServiceDaoImpl.getAllocationStorehouseApplyInfo(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyDto)), AllocationStorehouseApplyDto.class);
 
-        return allocationAllocationStorehouseApplyhouseApplys;
+        return allocationStorehouseApplyDtos;
     }
 
 
     @Override
     public int queryAllocationStorehouseApplysCount(@RequestBody AllocationStorehouseApplyDto allocationAllocationStorehouseApplyhouseApplyDto) {
-        return allocationAllocationStorehouseApplyhouseApplyV1ServiceDaoImpl.queryAllocationStorehouseApplysCount(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyDto));    }
+        return allocationStorehouseApplyV1ServiceDaoImpl.queryAllocationStorehouseApplysCount(BeanConvertUtil.beanCovertMap(allocationAllocationStorehouseApplyhouseApplyDto));
+    }
 
 }