修改第三方业务单据bug

master
郑明梁 2 years ago
parent 507be86bde
commit 0ac6508f6a

@ -1,6 +1,7 @@
package com.glxp.api.service.thrsys.impl;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.github.pagehelper.PageHelper;
import com.glxp.api.dao.thrsys.ThrBusTypeOriginDao;
@ -85,7 +86,9 @@ public class ThrBusTypeOriginServiceImpl implements IThrBusTypeOriginService {
@Override
public ThrBusTypeOriginEntity findByAction(String action) {
QueryWrapper<ThrBusTypeOriginEntity> query = new QueryWrapper<>();
query.like("action", action);
if(StrUtil.isNotEmpty(action)){
query.like("action", action);
}
List<ThrBusTypeOriginEntity> list = thrBusTypeOriginDao.selectList(query);
if (CollUtil.isNotEmpty(list)) {
return list.get(0);

@ -5,7 +5,7 @@
<select id="filterThrOrder" parameterType="com.glxp.api.req.thrsys.FilterThrOrderRequest"
resultType="com.glxp.api.entity.thrsys.ThrOrderEntity">
SELECT thr_order.*,basic_bustype_origin.name billTypeName FROM thr_order
SELECT thr_order.*,thr_bustype_origin.name billTypeName FROM thr_order
left join thr_bustype_origin on thr_order.billType = thr_bustype_origin.action
<where>
<if test="billNo != '' and billNo != null">

Loading…
Cancel
Save