乱码bug

This commit is contained in:
mashuai 2024-06-13 14:44:15 +08:00
parent 2d4c0cb34f
commit 926c07a059
2 changed files with 7 additions and 2 deletions

View File

@ -209,7 +209,11 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
return res; return res;
} }
//插入ma_type_put_in_storage_info表,返回主键id /**
* 插入ma_type_put_in_storage_info表,返回主键id
* @param machIneDto
* @return
*/
private int insertInfo(MachIneDto machIneDto) { private int insertInfo(MachIneDto machIneDto) {
return inventoryAndWarehousingMapper.saveInfo(machIneDto); return inventoryAndWarehousingMapper.saveInfo(machIneDto);
} }
@ -268,6 +272,8 @@ public class InventoryAndWarehousingServiceImpl implements InventoryAndWarehousi
machIneDto.setCreator(dto.getCreator()); machIneDto.setCreator(dto.getCreator());
machIneDto.setIsCode(dto.getIsCode()); machIneDto.setIsCode(dto.getIsCode());
machIneDto.setTotalNum(total); machIneDto.setTotalNum(total);
machIneDto.setUnitId(dto.getUnitId());
machIneDto.setProId(dto.getProId());
machIneDto.setRemarks(dto.getRemarks()); machIneDto.setRemarks(dto.getRemarks());
res += insertInfo(machIneDto); res += insertInfo(machIneDto);
machIneDto.setInfoId(machIneDto.getId()); machIneDto.setInfoId(machIneDto.getId());

View File

@ -267,7 +267,6 @@
pisd.MACODE like concat('%',#{keyWord},'%') pisd.MACODE like concat('%',#{keyWord},'%')
) )
</if> </if>
order by pisi.CREATE_DATE desc
</select> </select>
<select id="selectByMaCode" resultType="java.lang.Integer"> <select id="selectByMaCode" resultType="java.lang.Integer">
select count(*) select count(*)