Преглед изворни кода

1 收款认领模块添加信用证判断与赋值

11816 пре 4 часа
родитељ
комит
3c7c8c3a45

+ 3
- 0
src/main/java/com/example/backend/pAndSExe/mapper/SalesContractExeMapper.java Прегледај датотеку

15
 
15
 
16
     @Select("select cpal from SGGMIIP.addrctrl where fno=#{fours} and del_flag != 1 limit 1")
16
     @Select("select cpal from SGGMIIP.addrctrl where fno=#{fours} and del_flag != 1 limit 1")
17
     String selectCpalByFours(String fours);
17
     String selectCpalByFours(String fours);
18
+
19
+    @Select("select payMode from SGGMIIP.salesCollectMethod where rid =#{id} and nvl(del_flag,0)!= 1 limit 1")
20
+    String selectPayModeById(Long id);
18
 }
21
 }

+ 6
- 0
src/main/java/com/example/backend/pAndSExe/service/impl/ShoukuanrenlingSettleServiceImpl.java Прегледај датотеку

99
                 LocalDateTime localDateTime = LocalDateTime.parse("2025-12-31 00:00:00", formatter);
99
                 LocalDateTime localDateTime = LocalDateTime.parse("2025-12-31 00:00:00", formatter);
100
                 Date targetDate = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
100
                 Date targetDate = Date.from(localDateTime.atZone(ZoneId.systemDefault()).toInstant());
101
                 breceiptctrl.setFdate(targetDate);
101
                 breceiptctrl.setFdate(targetDate);
102
+                breceiptctrl.setRcptDate(targetDate);
103
+                String payMode =salesContractExeMapper.selectPayModeById(salesContract.getId());
104
+
105
+                if ("即期信用证".equals(payMode)||"远期信用证".equals(payMode)||"国内信用证".equals(payMode)||"D/P".equals(payMode)||"D/A".equals(payMode)){
106
+                    breceiptctrl.setPayType("信用证");
107
+                }else breceiptctrl.setPayType("常规收款");
102
 
108
 
103
                 Rate rate=paymgrctrlMapper.selectRate(inf.getCurcy());
109
                 Rate rate=paymgrctrlMapper.selectRate(inf.getCurcy());
104
                 if (rate!=null ){
110
                 if (rate!=null ){

Loading…
Откажи
Сачувај