Browse Source

feat 0 支付工程

devlop
yang_shj 4 years ago
parent
commit
358ea88a45
  1. 1
      payment-base-app/pom.xml
  2. 2
      payment-base-app/src/main/java/com/base/springcloud/service/imp/BillServiceImp.java
  3. 2
      payment-base-app/src/main/resources/com/base/payment/mapper/SaleBillMapper.xml

1
payment-base-app/pom.xml

@ -215,6 +215,7 @@
<descriptorRef>jar-with-dependencies</descriptorRef> <descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs> </descriptorRefs>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
<outputDirectory>../target</outputDirectory>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>

2
payment-base-app/src/main/java/com/base/springcloud/service/imp/BillServiceImp.java

@ -27,7 +27,9 @@ public class BillServiceImp implements BillService {
SaleBill queryResult = saleBillMapper.queryBillInfo(saleBill); SaleBill queryResult = saleBillMapper.queryBillInfo(saleBill);
if(!Optional.ofNullable(queryResult).isPresent()){ if(!Optional.ofNullable(queryResult).isPresent()){
saleBill.setTotalAmount(new BigDecimal(1)); saleBill.setTotalAmount(new BigDecimal(1));
orderBO.setSaleBill(saleBill);
logger.warn("==================销售单据查询失败!============================="); logger.warn("==================销售单据查询失败!=============================");
return;
} }
orderBO.setSaleBill(queryResult); orderBO.setSaleBill(queryResult);
} }

2
payment-base-app/src/main/resources/com/base/payment/mapper/SaleBillMapper.xml

@ -534,6 +534,6 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from stk_io_bill from stk_io_bill
where id = #{Id,jdbcType=VARCHAR} where id = #{id,jdbcType=VARCHAR}
</select> </select>
</mapper> </mapper>
Loading…
Cancel
Save