Просмотр исходного кода

修改xml文件格式不正确的bug

胡北宽 3 месяцев назад
Родитель
Сommit
61cb2d7e30

+ 1
- 1
src/main/java/com/example/backend/service/contract/impl/PurchaseContractServiceImpl.java Просмотреть файл

127
         try {
127
         try {
128
             // 保存主表
128
             // 保存主表
129
             salesContractMapper.insert(contract);
129
             salesContractMapper.insert(contract);
130
-            Long contractId = contract.getContractId();
130
+            Long contractId = contract.getId();
131
 
131
 
132
             // 保存产品明细
132
             // 保存产品明细
133
             if (products != null) {
133
             if (products != null) {

+ 2
- 2
src/main/resources/mapper/CustCtrlMapper.xml Просмотреть файл

20
     <select id="selectLPortByLportName" resultType="com.example.backend.entity.common.CustCtrl">
20
     <select id="selectLPortByLportName" resultType="com.example.backend.entity.common.CustCtrl">
21
         select fno,portName,portCd,portNm,country,countryName
21
         select fno,portName,portCd,portNm,country,countryName
22
         from SGGMIIP.portCtrl
22
         from SGGMIIP.portCtrl
23
-        where nvl(del_flag, 0) <>1
24
-        and isnull(country,'')<>''
23
+        where nvl(del_flag, 0) !=1
24
+        and isnull(country,'')!=''
25
         and portName = #{lPort}
25
         and portName = #{lPort}
26
         order by fno
26
         order by fno
27
     </select>
27
     </select>

Загрузка…
Отмена
Сохранить