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 standNumber;
private String standEnName; private String standEnName;
private String typeApplicable; private String typeApplicable;
private String NYLX; private String nylx;
// private String putTime; // private String putTime;
// private String XCXSSRQGJ; // private String XCXSSRQGJ;
// private String ZCCSSRQGJ; // private String ZCCSSRQGJ;
private String ZRBM; private String zrbm;
private String SYCPX; private String sycpx;
} }
@@ -94,7 +94,7 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
} }
if ("admin".equals(getUserName()))sarLawsDetailedList.setUpdatePeople("管理员"); if ("admin".equals(getUserName()))sarLawsDetailedList.setUpdatePeople("管理员");
else {sarLawsDetailedList.setUpdatePeople(getUserName());} else {sarLawsDetailedList.setUpdatePeople(getUserName());}
sarLawsDetailedListDao.insert(sarLawsDetailedList);
if (addDetailedDto.getInforlist()!=null){ if (addDetailedDto.getInforlist()!=null){
if (addDetailedDto.getInforlist().contains(",")){ if (addDetailedDto.getInforlist().contains(",")){
String[] id = addDetailedDto.getInforlist().split(","); String[] id = addDetailedDto.getInforlist().split(",");
@@ -104,17 +104,17 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
for (int a =0;a< id.length;a++){ for (int a =0;a< id.length;a++){
TimeDto dto = new TimeDto(); TimeDto dto = new TimeDto();
dto.setStandId(id[a]); dto.setStandId(id[a]);
if (null==putTime[a]){ if ("-".equals(putTime[a]) || null==putTime[a] ){
dto.setPutTime(null); dto.setPutTime(null);
}else { }else {
dto.setPutTime(putTime[a]); dto.setPutTime(putTime[a]);
} }
if (null == xcx[a]){ if ("-".equals(putTime[a]) || null == xcx[a]){
dto.setXcxssrqgj(null); dto.setXcxssrqgj(null);
}else { }else {
dto.setXcxssrqgj(xcx[a]); dto.setXcxssrqgj(xcx[a]);
} }
if (null == zcc[a]){ if ("-".equals(putTime[a]) || null == zcc[a]){
dto.setZccssrqgj(null); dto.setZccssrqgj(null);
}else { }else {
dto.setZccssrqgj(zcc[a]); dto.setZccssrqgj(zcc[a]);
@@ -132,7 +132,6 @@ public class SarLawsDetailedListServiceImpl extends ServiceImpl<SarLawsDetailedL
}else { }else {
timeDto=null; timeDto=null;
} }
sarLawsDetailedListDao.insert(sarLawsDetailedList);
service.insertDetailedList(sarLawsDetailedList.getId(),timeDto); service.insertDetailedList(sarLawsDetailedList.getId(),timeDto);
} catch (Exception e) { } catch (Exception e) {
@@ -27,15 +27,15 @@
and and
</if> </if>
<if test="sarFindDto.NYLX != null"> <if test="sarFindDto.NYLX != null">
b.NYLX LIKE concat ('%',#{sarFindDto.NYLX,jdbcType=VARCHAR},'%') b.NYLX LIKE concat ('%',#{sarFindDto.nylx,jdbcType=VARCHAR},'%')
and and
</if> </if>
<if test="sarFindDto.ZRBM != null"> <if test="sarFindDto.ZRBM != null">
b.ZRBM LIKE concat ('%',#{sarFindDto.ZRBM,jdbcType=VARCHAR},'%') b.ZRBM LIKE concat ('%',#{sarFindDto.zrbm,jdbcType=VARCHAR},'%')
and and
</if> </if>
<if test="sarFindDto.SYCPX != null"> <if test="sarFindDto.SYCPX != null">
b.SYCPX LIKE concat ('%',#{sarFindDto.SYCPX,jdbcType=VARCHAR},'%') b.SYCPX LIKE concat ('%',#{sarFindDto.sycpx,jdbcType=VARCHAR},'%')
and and
</if> </if>
a.ID IN a.ID IN