Update:清单高级检索

This commit is contained in:
zzy
2021-07-29 16:59:25 +08:00
parent 7d5fc79555
commit dd281f63ad
3 changed files with 10 additions and 11 deletions
@@ -17,11 +17,11 @@ public class SarFindDto {
// private String standNumber;
private String standEnName;
private String typeApplicable;
private String NYLX;
private String nylx;
// private String putTime;
// private String XCXSSRQGJ;
// private String ZCCSSRQGJ;
private String ZRBM;
private String SYCPX;
private String zrbm;
private String sycpx;
}
@@ -94,7 +94,7 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
}
if ("admin".equals(getUserName()))sarLawsDetailedList.setUpdatePeople("管理员");
else {sarLawsDetailedList.setUpdatePeople(getUserName());}
sarLawsDetailedListDao.insert(sarLawsDetailedList);
if (addDetailedDto.getInforlist()!=null){
if (addDetailedDto.getInforlist().contains(",")){
String[] id = addDetailedDto.getInforlist().split(",");
@@ -104,17 +104,17 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
for (int a =0;a< id.length;a++){
TimeDto dto = new TimeDto();
dto.setStandId(id[a]);
if (null==putTime[a]){
if ("-".equals(putTime[a]) || null==putTime[a] ){
dto.setPutTime(null);
}else {
dto.setPutTime(putTime[a]);
}
if (null == xcx[a]){
if ("-".equals(putTime[a]) || null == xcx[a]){
dto.setXcxssrqgj(null);
}else {
dto.setXcxssrqgj(xcx[a]);
}
if (null == zcc[a]){
if ("-".equals(putTime[a]) || null == zcc[a]){
dto.setZccssrqgj(null);
}else {
dto.setZccssrqgj(zcc[a]);
@@ -132,7 +132,6 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
}else {
timeDto=null;
}
sarLawsDetailedListDao.insert(sarLawsDetailedList);
service.insertDetailedList(sarLawsDetailedList.getId(),timeDto);
} catch (Exception e) {
@@ -27,15 +27,15 @@
and
</if>
<if test="sarFindDto.NYLX != null">
b.NYLX LIKE concat ('%',#{sarFindDto.NYLX,jdbcType=VARCHAR},'%')
b.NYLX LIKE concat ('%',#{sarFindDto.nylx,jdbcType=VARCHAR},'%')
and
</if>
<if test="sarFindDto.ZRBM != null">
b.ZRBM LIKE concat ('%',#{sarFindDto.ZRBM,jdbcType=VARCHAR},'%')
b.ZRBM LIKE concat ('%',#{sarFindDto.zrbm,jdbcType=VARCHAR},'%')
and
</if>
<if test="sarFindDto.SYCPX != null">
b.SYCPX LIKE concat ('%',#{sarFindDto.SYCPX,jdbcType=VARCHAR},'%')
b.SYCPX LIKE concat ('%',#{sarFindDto.sycpx,jdbcType=VARCHAR},'%')
and
</if>
a.ID IN