张晓波
2023-12-11 0d0968ec2d1a39c21e15e447c4f2227f70d6a11b
hd/pipe/materialsManage/src/main/resources/mapping/TMaterialReleaseMapper.xml
@@ -147,10 +147,16 @@
    where material_release_id=#{materialReleaseId}
  </update>
  <select id="pieceList" resultType="com.thhy.materials.modules.biz.concret.entity.dto.PieceDto">
    select by_id as byId from  t_piece
    select by_id as byId,
      BldTim as bldTim,
      types as types
     from  t_piece
    where 1=1
    <if test="byId!=null and byId!='' ">
      and by_id=#{byId}
    </if>
    <if test="types!=null and types!=''">
        and types=#{types}
    </if>
    ORDER BY  by_id desc
  </select>
@@ -161,7 +167,7 @@
    PlanAmnt as planamnt,
    FactAmnt as factamnt
     from  t_raw_material
    where  Piece=#{byId}
    where  Piece=#{byId} and types=#{types}
  </select>
  <insert id="mixingInsert" >
    insert into t_mixing
@@ -285,7 +291,8 @@
        report_number as reportNumber,
        stata as stata,
        silo_id as siloId,
        percentage as percentage
        percentage as percentage,
        inspect_date as inspectDate
        from t_mixing where silo_id=#{siloId}
        and types=1
  </select>
@@ -432,7 +439,7 @@
  <select id="mixingConsumes" resultType="com.thhy.materials.modules.biz.concret.entity.TMixingConsume">
    select
    mc.mixing_consume_id as mixingConsumeId,
    sd.dict_name as dictName,
    -- sd.dict_name as dictName,
    mc.dict_id as dictId,
    mc.spec as spec,
    mc.manufacturer as manufacturer,
@@ -446,7 +453,7 @@
    mc.create_time as createTime,
    mc.construction_unit as constructionUnit
     from t_mixing_consume mc
     left join  sys_dict sd on mc.dict_id=sd.dict_id
    -- left join  sys_dict sd on mc.dict_id=sd.dict_id
     where mc.mixing_signboard_id=#{mixingSignboardId} and mc.star=#{star}
<!--     <if test="strTime!=null and strTime!='' and endTime !=null and endTime!=''">-->
<!--         and mc.create_time between #{strTime} and #{endTime}-->