| | |
| | | <if test="createTime != null"> |
| | | create_time = #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="isUse != null"> |
| | | is_use = #{isUse,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="companyId != null"> |
| | | company_id = #{companyId,jdbcType=VARCHAR}, |
| | | </if> |
| | |
| | | <if test="createTime != null"> |
| | | create_time, |
| | | </if> |
| | | <if test="isUse != null"> |
| | | is_use, |
| | | </if> |
| | | <if test="companyId != null"> |
| | | company_id, |
| | | </if> |
| | |
| | | <if test="createTime != null"> |
| | | #{createTime,jdbcType=TIMESTAMP}, |
| | | </if> |
| | | <if test="isUse != null"> |
| | | #{isUse,jdbcType=INTEGER}, |
| | | </if> |
| | | <if test="companyId != null"> |
| | | #{companyId,jdbcType=VARCHAR}, |
| | | </if> |
| | |
| | | |
| | | <select id="embedmentRecordList" resultType="com.thhy.materials.modules.biz.embedment.entity.SysEmbedmentRecordEntity"> |
| | | select |
| | | CONCAT(seg.embedment_name,"-",seg.embedment_model) embedmentNameAndModel, |
| | | ser.id, |
| | | ser.embedment_id as embedmentId, |
| | | ser.stock_type as stockType, |
| | |
| | | <if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' "> |
| | | and ser.create_time between #{strTime} and #{endTime} |
| | | </if> |
| | | order by sar.create_time desc |
| | | order by ser.create_time desc |
| | | </select> |
| | | <select id="embedmentRecordOutList" resultType="com.thhy.materials.modules.biz.embedment.entity.SysEmbedmentRecordEntity"> |
| | | select |
| | |
| | | <if test="strTime!=null and strTime!='' and endTime!=null and endTime!='' "> |
| | | and ser.create_time between #{strTime} and #{endTime} |
| | | </if> |
| | | order by sar.create_time desc |
| | | order by ser.create_time desc |
| | | </select> |
| | | <select id="embedmentRecordInfo" parameterType="java.lang.String" resultType="com.thhy.materials.modules.biz.embedment.entity.SysEmbedmentRecordEntity"> |
| | | select |
| | |
| | | where ser.is_use=1 and ser.id=#{id} |
| | | </select> |
| | | |
| | | <select id="assistIdSelect" parameterType="java.lang.String" resultType="com.thhy.materials.modules.biz.materials.entity.SysAssistRecord"> |
| | | select |
| | | sar.id, |
| | | sar.assist_id as assistId, |
| | | sar.stock_type as stockType, |
| | | sar.change_stock as changeStock, |
| | | sar.supplier_id as supplierId, |
| | | sar.single_price as singlePrice, |
| | | sar.amount as amount, |
| | | sar.remark as remark, |
| | | sar.get_depart as getDepart, |
| | | sar.create_user as createUser, |
| | | sar.create_time as createTime, |
| | | sar.is_use as isUse |
| | | from sys_assist_record sar where sar.id=#{id} |
| | | </select> |
| | | <update id="embedmentRecordDel" > |
| | | update sys_embedment_record set |
| | | is_use=2 |