入库盘点

This commit is contained in:
mashuai 2024-04-17 15:32:23 +08:00
parent 73637df9ac
commit af01245488
3 changed files with 4 additions and 26 deletions

View File

@ -66,13 +66,6 @@ public interface InventoryAndWarehousingMapper {
*/
int insertLabelBind(MachIneDto machIneDto);
/**
* 根据code从ma_machine表查询是否有数据去重
* @param code
* @return
*/
int selectByCode(String code);
/**
* 查询
* @param nowDate

View File

@ -106,15 +106,6 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
return AjaxResult.success(res);
}
/**
* 根据code从ma_machine表查询是否有数据去重
* @param code
* @return
*/
private int selectByCode(String code) {
return inventoryAndWarehousingMapper.selectByCode(code);
}
/**
* 编号新增插入ma_machinema_machine_label和ma_label_bind
* @param dto

View File

@ -196,24 +196,18 @@
where
1 = 1
<if test="keyWord != null and keyWord != ''">
and (pisi.PUT_IN_TYPE like concat('%',#{keyWord},'%') or
and (
pisi.`CODE` like concat('%',#{keyWord},'%') or
pisi.PUT_IN_TYPE like concat('%',#{keyWord},'%') or
lot.lot_name like concat('%',#{keyWord},'%') or
bui.unit_name like concat('%',#{keyWord},'%') or
mt2.type_name like concat('%',#{keyWord},'%') or
su.user_name like concat('%',#{keyWord},'%') or
pisd.REMARKS like concat('%',#{keyWord},'%')
pisi.REMARKS like concat('%',#{keyWord},'%')
)
</if>
order by pisi.CREATE_DATE desc
</select>
<select id="selectByCode" resultType="java.lang.Integer">
select count(*)
from ma_machine
where
1 = 1
<if test="code != null "> and qr_code = #{code}</if>
</select>
<select id="selectTaskNumByMonth" resultType="java.lang.Integer">
select count(*) from ma_type_put_in_storage_info where DATE_FORMAT(CREATE_DATE,'%y%m') = DATE_FORMAT(#{date},'%y%m')
</select>