diff --git a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java index 13df48f9c..c32ff390e 100644 --- a/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java +++ b/emis-biz-web/src/main/java/com/xdadan/erp/web/emis/EmisWaybillAttachmentController.java @@ -23,6 +23,7 @@ import com.xdadan.erp.emis.domain.exception.EmisBizError; import com.xdadan.erp.emis.domain.vo.scan.ScanInfo; import com.xdadan.erp.emis.service.EmisBaseService; import com.xdadan.erp.emis.service.IEmisTmsScanRecordService; +import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.GetMapping; @@ -39,7 +40,6 @@ import com.xdadan.erp.common.core.controller.BaseController; import com.xdadan.erp.common.core.domain.AjaxResult; import com.xdadan.erp.common.core.page.TableDataInfo; import com.xdadan.erp.common.enums.BusinessType; -import com.xdadan.erp.common.utils.StringUtils; import com.xdadan.erp.common.utils.poi.ExcelUtil; import com.xdadan.erp.emis.domain.EmisWaybillAttachment; @@ -72,6 +72,24 @@ public class EmisWaybillAttachmentController extends EmisBaseController public TableDataInfo list(EmisWaybillAttachment emisWaybillAttachment) { startPage(); + + // 设置通用权限查询参数 + setPrivParams(emisWaybillAttachment); + + if(!org.apache.commons.lang3.StringUtils.isEmpty(emisWaybillAttachment.getBillCode())){ + if(emisWaybillAttachment.getBillCode().lastIndexOf(",")!=-1) { + StringBuilder sb = new StringBuilder(emisWaybillAttachment.getBillCode()); + sb.deleteCharAt(sb.lastIndexOf(",")); + emisWaybillAttachment.setBillCode(sb.toString()); + } + + String[] billCodeSortList = emisWaybillAttachment.getBillCode().split(","); + if(billCodeSortList.length>1){ + emisWaybillAttachment.getParams().put("billCodeSortList",Arrays.asList(billCodeSortList)); + } + } + + List list = emisWaybillAttachmentService.selectEmisWaybillAttachmentList(emisWaybillAttachment); return getDataTable(list); } diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillAttachmentMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillAttachmentMapper.xml index b1c84aa3a..801b98fb3 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillAttachmentMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillAttachmentMapper.xml @@ -28,8 +28,8 @@ del_flag='0' and id = #{id} and waybill_id = #{waybillId} - and bill_code like concat('%', #{billCode}, '%') - and attach_type like concat('%', #{attachType}, '%') + and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) + and attach_type=#{attachType} and file_name like concat('%', #{fileName}, '%') and file_url like concat('%', #{fileUrl}, '%') and file_siez = #{fileSiez} diff --git a/emis-biz/src/main/resources/mapper/EmisWaybillProblemInfoMapper.xml b/emis-biz/src/main/resources/mapper/EmisWaybillProblemInfoMapper.xml index ebad9bd17..bb4553de7 100644 --- a/emis-biz/src/main/resources/mapper/EmisWaybillProblemInfoMapper.xml +++ b/emis-biz/src/main/resources/mapper/EmisWaybillProblemInfoMapper.xml @@ -48,14 +48,14 @@ and id = #{id} and ( FIND_IN_SET(`bill_code`,#{billCode}) or bill_code like concat('%', #{billCode}, '%') ) - and problem_type like concat('%', #{problemType}, '%') + and FIND_IN_SET(problem_type,#{problemType}) and problem_title like concat('%', #{problemTitle}, '%') and problem_cause like concat('%', #{problemCause}, '%') and send_site like concat('%', #{sendSite}, '%') - and send_site_code like concat('%', #{sendSiteCode}, '%') - and register_man_code like concat('%', #{registerManCode}, '%') + and send_site_code=#{sendSiteCode} + and register_man_code=#{registerManCode} and register_man_dept like concat('%', #{registerManDept}, '%') - and register_site_code like concat('%', #{registerSiteCode}, '%') + and register_site_code=#{registerSiteCode} and register_date = #{registerDate} and register_save_date like concat('%', #{registerSaveDate}, '%') and data_from like concat('%', #{dataFrom}, '%') @@ -77,6 +77,15 @@ and remark like concat('%', #{remark}, '%') and create_site like concat('%', #{createSite}, '%') and update_site like concat('%', #{updateSite}, '%') + + + and register_date = ]]> #{params.beginRegisterDate} + + + and register_date #{params.endRegisterDate} + + + order by create_time desc