1.修复部分bug

master
x_z 3 years ago
parent a6748519f0
commit f0204969e4

@ -14,8 +14,6 @@ public interface UnitMaintainDao extends BaseMapper<UnitMaintainEntity> {
boolean insertUnitMaintain(UnitMaintainEntity unitMaintainEntity); boolean insertUnitMaintain(UnitMaintainEntity unitMaintainEntity);
boolean deleteById(@Param("id") String id);
boolean updateUnit(UnitMaintainEntity unitMaintainEntity); boolean updateUnit(UnitMaintainEntity unitMaintainEntity);
UnitMaintainEntity selectByName(@Param("name") String fromCorp); UnitMaintainEntity selectByName(@Param("name") String fromCorp);

@ -35,5 +35,7 @@ public interface WarehouseBussinessTypeDao extends BaseMapper<WarehouseBussiness
Page<WarehouseBussinessTypeEntity> selectListByCode(Page<WarehouseBussinessTypeEntity> page, @Param("code") String code); Page<WarehouseBussinessTypeEntity> selectListByCode(Page<WarehouseBussinessTypeEntity> page, @Param("code") String code);
List<WarehouseBussinessTypeEntity> selectByCode(String code);
void deleteByCode(@Param("code") String code); void deleteByCode(@Param("code") String code);
} }

@ -26,8 +26,6 @@ public interface InvStockPrintDao extends BaseMapper<StockPrintEntity> {
boolean updateStockPrint(StockPrintEntity udiInfoEntity); boolean updateStockPrint(StockPrintEntity udiInfoEntity);
boolean deleteById(@Param("id") String id);
boolean deleteByGenKey(@Param("genKey") String genKey); boolean deleteByGenKey(@Param("genKey") String genKey);
boolean deleteByOrderId(@Param("sOrderId") String sOrderId); boolean deleteByOrderId(@Param("sOrderId") String sOrderId);

@ -84,6 +84,11 @@ public class UdiInfoEntity {
private Boolean isDisable; private Boolean isDisable;
/**
*
*/
private String thirdId;
//本地生成信息 //本地生成信息
@TableField(exist = false) @TableField(exist = false)
private String batchNo; private String batchNo;

@ -33,8 +33,7 @@ public class DeviceKeyService {
public DeviceKeyEntity findDeviceByImei(String imei) { public DeviceKeyEntity findDeviceByImei(String imei) {
FilterDeviceKeyRequest filterDeviceKeyRequest = new FilterDeviceKeyRequest(); FilterDeviceKeyRequest filterDeviceKeyRequest = new FilterDeviceKeyRequest();
filterDeviceKeyRequest.setImei(imei); filterDeviceKeyRequest.setImei(imei);
DeviceKeyEntity deviceKeyEntity = deviceKeyDao.findDeviceByImei(filterDeviceKeyRequest); return deviceKeyDao.findDeviceByImei(filterDeviceKeyRequest);
return deviceKeyEntity;
} }
public void insertDeviceKey(DeviceKeyEntity deviceKeyEntity) { public void insertDeviceKey(DeviceKeyEntity deviceKeyEntity) {

@ -105,6 +105,10 @@ public class UdiInfoService {
public boolean updateUdiInfo(UdiInfoEntity udiInfoEntity) { public boolean updateUdiInfo(UdiInfoEntity udiInfoEntity) {
udiInfoEntity.setLastUpdateTime(new Date()); udiInfoEntity.setLastUpdateTime(new Date());
if (StrUtil.isBlank(udiInfoEntity.getThirdId())) {
//当第三方系统编码为空时置空此参数更新时将此字段更新为null
udiInfoEntity.setThirdId("empty");
}
return udiInfoDao.updateUdiInfo(udiInfoEntity); return udiInfoDao.updateUdiInfo(udiInfoEntity);
} }

@ -39,7 +39,8 @@ public class UnitMaintainService {
} }
public boolean deleteById(String id) { public boolean deleteById(String id) {
return unitMaintainDao.deleteById(id); int i = unitMaintainDao.deleteById(id);
return i > 0;
} }
public UnitMaintainEntity selectById(String id) { public UnitMaintainEntity selectById(String id) {

@ -30,12 +30,11 @@ public class WarehouseBussinessTypeService {
* @return * @return
*/ */
public List<WarehouseBussinessTypeEntity> getListByCode(String code) { public List<WarehouseBussinessTypeEntity> getListByCode(String code) {
Page<WarehouseBussinessTypeEntity> page = new Page<>(-1, -1); List<WarehouseBussinessTypeEntity> list = warehouseBussinessTypeDao.selectByCode(code);
Page<WarehouseBussinessTypeEntity> pageResult = warehouseBussinessTypeDao.selectListByCode(page, code); if (CollUtil.isNotEmpty(list)) {
if (pageResult.getTotal() == 0) { return list;
return Collections.emptyList();
} }
return pageResult.getRecords(); return Collections.emptyList();
} }
/** /**

@ -51,7 +51,8 @@ public class InvStockPrintService {
} }
public boolean deleteById(String id) { public boolean deleteById(String id) {
return stockPrintDao.deleteById(id); int i = stockPrintDao.deleteById(id);
return i > 0;
} }
} }

@ -174,6 +174,7 @@
<if test="manufactory != null">manufactory=#{manufactory},</if> <if test="manufactory != null">manufactory=#{manufactory},</if>
<if test="lastUpdateTime != null">lastUpdateTime=#{lastUpdateTime},</if> <if test="lastUpdateTime != null">lastUpdateTime=#{lastUpdateTime},</if>
<if test="thirdId != null and thirdId != ''">thirdId=#{thirdId},</if> <if test="thirdId != null and thirdId != ''">thirdId=#{thirdId},</if>
<if test="thirdId == 'empty'">thirdId = null,</if>
</set> </set>
WHERE id = #{id} WHERE id = #{id}
</update> </update>

@ -40,10 +40,6 @@
#{mobile}, #{pinyinCode}) #{mobile}, #{pinyinCode})
</insert> </insert>
<delete id="deleteById" parameterType="Map">
DELETE FROM io_unit_maintain WHERE id = #{id}
</delete>
<update id="updateUnit" parameterType="com.glxp.udi.admin.entity.inout.UnitMaintainEntity"> <update id="updateUnit" parameterType="com.glxp.udi.admin.entity.inout.UnitMaintainEntity">
UPDATE io_unit_maintain UPDATE io_unit_maintain
<set> <set>

@ -237,6 +237,12 @@
inner join basic_bussiness_type on inv_warehouse_bussiness_type.action = basic_bussiness_type.action inner join basic_bussiness_type on inv_warehouse_bussiness_type.action = basic_bussiness_type.action
where code = #{code} where code = #{code}
</select> </select>
<select id="selectByCode" resultType="com.glxp.udi.admin.entity.inout.WarehouseBussinessTypeEntity">
select inv_warehouse_bussiness_type.id, inv_warehouse_bussiness_type.code, inv_warehouse_bussiness_type.action, basic_bussiness_type.name
from inv_warehouse_bussiness_type
inner join basic_bussiness_type on inv_warehouse_bussiness_type.action = basic_bussiness_type.action
where code = #{code}
</select>
<delete id="deleteByCode"> <delete id="deleteByCode">
delete delete

@ -186,12 +186,6 @@
</foreach> </foreach>
</insert> </insert>
<delete id="deleteById" parameterType="Map">
DELETE
FROM inv_stockprint
WHERE id = #{id}
</delete>
<delete id="deleteByGenKey" parameterType="Map"> <delete id="deleteByGenKey" parameterType="Map">
DELETE DELETE
FROM inv_stockprint FROM inv_stockprint

Loading…
Cancel
Save