| | |
| | | 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> |
| | |
| | | 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 |
| | |
| | | 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} |
| | | order by in_date desc limit 0,1 |
| | | and types=1 |
| | | </select> |
| | | <select id="siloList" resultType="com.thhy.materials.modules.biz.concret.entity.TSilo"> |
| | | select |
| | |
| | | <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, |
| | |
| | | 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}--> |