| | |
| | | @Update("update asr_loc_detl set loc_no = #{newLocNo}, modi_time=getDate() where loc_no = #{oldLocNo}") |
| | | int updateLocNo(String newLocNo, String oldLocNo); |
| | | |
| | | int updateBarcode(String locNo, String barcode); |
| | | |
| | | @Select("SELECT ld.loc_no FROM asr_loc_detl ld LEFT JOIN asr_loc_mast lm ON ld.loc_no = lm.loc_no WHERE (1 = 1 AND ld.matnr = #{matnr} AND (lm.row1 >= #{start} AND lm.row1 <= #{end}) AND lm.loc_sts = 'F' AND DateDiff(dd, ld.appe_time, getdate()) = 0) ORDER BY ld.appe_time ASC") |
| | | List<String> selectSameDetlToday(@Param("matnr") String matnr, @Param("start") Integer start, @Param("end") Integer end); |
| | | |
| | |
| | | List<WrkDetl> selectPakoutQuery(@Param("staNo")Integer staNo, @Param("matnr")String matnr); |
| | | |
| | | List<WrkDetl> selectAndLogByOrderNoGroupByMatnrOfSum(String orderNo); |
| | | |
| | | int updateBarcode(Integer wrkNo, String barcode); |
| | | } |
| | |
| | | |
| | | boolean updateLocNo(String newLocNo, String oldLocNo); |
| | | |
| | | boolean updateBarcode(String locNo, String barcode); |
| | | |
| | | /** |
| | | * 获取当天相同规格货物的深库位号 |
| | | * @param matnr 商品编号 |
| | |
| | | |
| | | List<WrkDetl> selectAndLogByOrderNoGroupByMatnrOfSum(String orderNo); |
| | | |
| | | boolean updateBarcode(Integer wrkNo, String barcode); |
| | | |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateBarcode(String locNo, String barcode) { |
| | | return this.baseMapper.updateBarcode(locNo, barcode) > 0; |
| | | } |
| | | |
| | | @Override |
| | | public List<String> getSameDetlToday(String matnr, Integer start, Integer end) { |
| | | return this.baseMapper.selectSameDetlToday(matnr, start, end); |
| | | } |
| | |
| | | wrkMast.setModiUser(userId); |
| | | wrkMastService.updateById(wrkMast); |
| | | |
| | | WrkDetl wrkDetl = new WrkDetl(); |
| | | wrkDetl.setZpallet(param.getNewBarcode()); |
| | | wrkDetl.setModiTime(new Date()); |
| | | wrkDetl.setModiUser(userId); |
| | | wrkDetlService.update(wrkDetl, new EntityWrapper<WrkDetl>().eq("wrk_no", wrkMast.getWrkNo())); |
| | | wrkDetlService.updateBarcode(wrkMast.getWrkNo(), param.getNewBarcode()); |
| | | |
| | | locMast.setBarcode(param.getNewBarcode()); |
| | | locMast.setModiTime(new Date()); |
| | | locMastService.updateById(locMast); |
| | | |
| | | LocDetl locDetl = new LocDetl(); |
| | | locDetl.setZpallet(param.getNewBarcode()); |
| | | locDetl.setModiTime(new Date()); |
| | | locDetl.setModiUser(userId); |
| | | locDetlService.update(locDetl, new EntityWrapper<LocDetl>().eq("loc_no", locMast.getLocNo())); |
| | | locDetlService.updateBarcode(locMast.getLocNo(), param.getNewBarcode()); |
| | | } |
| | | } |
| | |
| | | public List<WrkDetl> selectAndLogByOrderNoGroupByMatnrOfSum(String orderNo) { |
| | | return this.baseMapper.selectAndLogByOrderNoGroupByMatnrOfSum(orderNo); |
| | | } |
| | | |
| | | @Override |
| | | public boolean updateBarcode(Integer wrkNo, String barcode) { |
| | | return this.baseMapper.updateBarcode(wrkNo, barcode) > 0; |
| | | } |
| | | } |
| | |
| | | <include refid="batchSeqNew"></include> |
| | | </update> |
| | | |
| | | <update id="updateBarcode"> |
| | | update asr_loc_detl |
| | | set zpallet = #{barcode} |
| | | , modi_time = getdate() |
| | | where 1=1 |
| | | and loc_no = #{locNo} |
| | | </update> |
| | | |
| | | <sql id="stockOutCondition"> |
| | | <if test="loc_no!=null and loc_no!='' "> |
| | | and a.loc_no like '%' + #{loc_no} + '%' |
| | |
| | | <include refid="batchSeq"></include> |
| | | </update> |
| | | |
| | | <update id="updateBarcode"> |
| | | update asr_wrk_detl |
| | | set zpallet = #{barcode} |
| | | , modi_time = getdate() |
| | | where 1=1 |
| | | and wrk_no = #{wrkNo} |
| | | </update> |
| | | |
| | | <select id="selectAndLogByOrderNo" resultMap="BaseResultMap"> |
| | | select awd.* |
| | | from asr_wrk_detl awd |