diff --git a/src/main/java/com/spring/modules/part/mapper/MasterPartInformationMapper.java b/src/main/java/com/spring/modules/part/mapper/MasterPartInformationMapper.java index 6cd29093..0d90578a 100644 --- a/src/main/java/com/spring/modules/part/mapper/MasterPartInformationMapper.java +++ b/src/main/java/com/spring/modules/part/mapper/MasterPartInformationMapper.java @@ -31,4 +31,6 @@ public interface MasterPartInformationMapper extends BaseMapper().eq("username", data.getUpdateBy())); + if (ifsUser == null || !org.apache.commons.lang3.StringUtils.isNotBlank(ifsUser.getIfsUsername()) || !org.apache.commons.lang3.StringUtils.isNotBlank(ifsUser.getIfsPassword())) { + throw new RuntimeException("请维护IFS账号和密码!"); + } + Server srv = ifsServer.getIfsServer(ifsUser.getIfsUsername(), ifsUser.getIfsPassword()); PartIfsCatalog partIfsCatalog = getPartIfsCatalog(data); + partIfsCatalog.setIfsUsername(ifsUser.getIfsUsername()); Map updateResponse = masterServiceBean.modifyPartCatalog(srv, partIfsCatalog); if (!"200".equals(updateResponse.get("resultCode"))) { throw new RuntimeException("IFS 物料件编辑异常信息:" + updateResponse.get("resultMsg")); @@ -375,10 +380,15 @@ public class MasterPartInformationServiceImpl extends ServiceImpl + + + UPDATE part_catalog + SET code_no = #{codeNo} + WHERE part_no = #{partNo} + diff --git a/src/main/resources/mapper/part/PartInformationMapper.xml b/src/main/resources/mapper/part/PartInformationMapper.xml index 57d9ac7b..82c934d0 100644 --- a/src/main/resources/mapper/part/PartInformationMapper.xml +++ b/src/main/resources/mapper/part/PartInformationMapper.xml @@ -2253,7 +2253,7 @@ insert into PartSubPropertiesValue (site, PartNo, CodeNo, SubCodeSeqNo, ItemNo, PropertiesItemNo, TextValue, NumValue, RecordType) VALUES - (#{item.site}, #{item.partNo}, #{item.codeNo}, #{item.subCodeSeqNo,jdbcType=FLOAT}, #{item.itemNo}, #{item.propertiesItemNo}, #{item.textValue}, #{item.numValue}, #{item.recordType}) + (#{item.site}, #{item.partNo}, #{item.codeNo}, #{item.subCodeSeqNo, jdbcType=FLOAT}, #{item.itemNo, jdbcType=FLOAT}, #{item.propertiesItemNo}, #{item.textValue}, #{item.numValue, jdbcType=FLOAT}, #{item.recordType})