叶松
2023-11-22 3b7f9e4425ad1fe34afb6a3a121c5b943432db5e
hd/pipe/materialsManage/src/main/resources/mapping/TSteelPrintMapper.xml
@@ -57,6 +57,9 @@
      <if test="isUse != null">
        is_use,
      </if>
        <if test="platUserId != null">
            plat_user_id,
        </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="steelPrintId != null">
@@ -92,10 +95,14 @@
      <if test="isUse != null">
        #{isUse,jdbcType=INTEGER},
      </if>
        <if test="platUserId != null">
            #{platUserId,jdbcType=VARCHAR},
        </if>
    </trim>
  </insert>
  <select id="steelPrintList" resultType="com.thhy.materials.modules.biz.rebarprint.entity.TSteelPrint">
        select tsp.steel_print_id as steelPrintId,
      select
      tsp.steel_print_id as steelPrintId,
        tsp.pro_id as proId,
        tsp.size_id as sizeId,
        tsp.reinforcement_id as reinforcementId,
@@ -106,8 +113,10 @@
        sp.pro_name as proName,sd.dict_name as sizeName,
        sd1.dict_name as reinforcementName,
        sd2.dict_name as blockName,
        su.real_name as  realName
      su.real_name as  realName,
      spu.real_name as platUserName
         from  t_steel_print tsp
      left join sys_plat_user spu on spu.user_id = tsp.plat_user_id
        left join sys_project sp on tsp.pro_id=sp.pro_id
        left join sys_dict sd on  tsp.size_id=sd.dict_id
        left join sys_dict sd1 on  tsp.reinforcement_id=sd1.dict_id