过滤数据!!!
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ public interface SarLawsAttrDetailedListDao extends BaseMapper<SarLawsAttrDetail
|
||||
//用于导出
|
||||
List<LawsDto> selectLawsByIdE(@Param("param1") List<String> LawsIds);
|
||||
//根据标准id查出数据
|
||||
List<LawsDto> selectLawsByIdC(@Param("param1") List<String> LawsIds, @Param("standName") String standName,@Param("standType")String standType);
|
||||
List<LawsDto> selectLawsByIdC(@Param("start")Integer start,@Param("end")Integer end,@Param("param1") List<String> LawsIds, @Param("standName") String standName,@Param("standType")String standType,@Param("fileType")String fileType);
|
||||
//查询时间
|
||||
List<StandRegionalTimeDto> selectTimes(String standId);
|
||||
List<String> selectLawsId2(String standId);
|
||||
|
||||
@@ -60,5 +60,8 @@ public class SarPublicIdea extends BaseEntity {
|
||||
@TableField("stand_id")
|
||||
private String standId;
|
||||
|
||||
@TableField("stand_type")
|
||||
private String standType;
|
||||
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -70,7 +70,7 @@ public class SarStandItemsController extends BaseController<SarStandItems> {
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "标准查询")
|
||||
@ApiOperation(value = "标准批量保存")
|
||||
@PostMapping("/saveBatch")
|
||||
public String saveBatch(@RequestBody List<SarStandItems> findStandDto){
|
||||
findStandDto.forEach(sarStandItems -> sarStandItems.setId(UUIDUtils.randomUUID(32)));
|
||||
|
||||
@@ -14,4 +14,5 @@ public class FindStandDto {
|
||||
private int size;
|
||||
private String standName;
|
||||
private String standType;
|
||||
private String fileType;
|
||||
}
|
||||
|
||||
@@ -44,4 +44,8 @@ public class SarStandItemsDto {
|
||||
@ApiModelProperty(value = "覆盖关系")
|
||||
private String busStandCover;
|
||||
|
||||
private String xcxssrq;
|
||||
|
||||
private String zccssrq;
|
||||
|
||||
}
|
||||
|
||||
+7
-7
@@ -85,8 +85,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
.itemsName(sarStandItemsDto.getItemsName())
|
||||
.itemsNum(sarStandItemsDto.getItemsNum())
|
||||
.responsibleUnit(sarStandItemsDto.getResponsibleUnit())
|
||||
.XCXSSRQ(standsTimeDto.getXCXSSRQ())
|
||||
.ZCCSSRQ(standsTimeDto.getZCCSSRQ())
|
||||
.XCXSSRQ(sarStandItemsDto.getXcxssrq())
|
||||
.ZCCSSRQ(sarStandItemsDto.getZccssrq())
|
||||
.svpps(sarStandItemsDto.getSvpps())
|
||||
.applyArctic(sarStandItemsDto.getApplyArctic())
|
||||
.claimType(sarStandItemsDto.getClaimType())
|
||||
@@ -108,8 +108,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
.itemsName(sarStandItemsDto.getItemsName())
|
||||
.itemsNum(sarStandItemsDto.getItemsNum())
|
||||
.responsibleUnit(sarStandItemsDto.getResponsibleUnit())
|
||||
.XCXSSRQ(standsTimeDto.getXCXSSRQ())
|
||||
.ZCCSSRQ(standsTimeDto.getZCCSSRQ())
|
||||
.XCXSSRQ(sarStandItemsDto.getXcxssrq())
|
||||
.ZCCSSRQ(sarStandItemsDto.getZccssrq())
|
||||
.svpps(sarStandItemsDto.getSvpps())
|
||||
.applyArctic(sarStandItemsDto.getApplyArctic())
|
||||
.claimType(sarStandItemsDto.getClaimType())
|
||||
@@ -129,8 +129,8 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
.itemsName(sarStandItemsDto.getItemsName())
|
||||
.itemsNum(sarStandItemsDto.getItemsNum())
|
||||
.responsibleUnit(sarStandItemsDto.getResponsibleUnit())
|
||||
.XCXSSRQ(standsTimeDto1.getXCXSSRQ())
|
||||
.ZCCSSRQ(standsTimeDto1.getZCCSSRQ())
|
||||
.XCXSSRQ(sarStandItemsDto.getXcxssrq())
|
||||
.ZCCSSRQ(sarStandItemsDto.getZccssrq())
|
||||
.svpps(sarStandItemsDto.getSvpps())
|
||||
.applyArctic(sarStandItemsDto.getApplyArctic())
|
||||
.claimType(sarStandItemsDto.getClaimType())
|
||||
@@ -168,7 +168,7 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
||||
if (standId==null || standId.size()==0){
|
||||
list = null;
|
||||
}else {
|
||||
list = sarLawsAttrDetailedListDao.selectLawsByIdC(standId,findStandDto.getStandName(), findStandDto.getStandType());
|
||||
list = sarLawsAttrDetailedListDao.selectLawsByIdC((findStandDto.getPage()-1)*findStandDto.getSize(),findStandDto.getPage()*findStandDto.getSize(),standId,findStandDto.getStandName(), findStandDto.getStandType(),findStandDto.getFileType());
|
||||
}
|
||||
IPage<LawsDto> page1=new Page<>();
|
||||
page1.setRecords(list);
|
||||
|
||||
+14
-14
@@ -24,8 +24,8 @@ import java.util.List;
|
||||
@Service
|
||||
public class SarInterpretationNationalStandardServiceImpl extends ServiceImpl<SarInterpretationNationalStandardDao, SarInterpretationNationalStandard> implements ISarInterpretationNationalStandardService {
|
||||
|
||||
@Autowired
|
||||
SarStandardComplianceProductAssessDao sarStandardComplianceProductAssessDao;
|
||||
// @Autowired
|
||||
// SarStandardComplianceProductAssessDao sarStandardComplianceProductAssessDao;
|
||||
|
||||
@Override
|
||||
public String saveBath(List<SarInterpretationNationalStandard> sarInterpretationNationalStandards) {
|
||||
@@ -34,18 +34,18 @@ public class SarInterpretationNationalStandardServiceImpl extends ServiceImpl<Sa
|
||||
sarInterpretationNationalStandards.forEach(sarInterpretationNationalStandard -> {
|
||||
QueryWrapper<SarStandardComplianceProductAssess> queryWrapper=new QueryWrapper<>();
|
||||
queryWrapper.eq("stand_id",sarInterpretationNationalStandard.getStandId());
|
||||
List<SarStandardComplianceProductAssess> assessList = sarStandardComplianceProductAssessDao.selectList(queryWrapper);
|
||||
if (assessList.isEmpty()){
|
||||
SarStandardComplianceProductAssess sar=new SarStandardComplianceProductAssess();
|
||||
sar.setId(UUIDUtils.randomUUID(32));
|
||||
sar.setStandId(sarInterpretationNationalStandard.getStandId());
|
||||
sar.setStandNumber(sarInterpretationNationalStandard.getStandNumber());
|
||||
sar.setStandType(sarInterpretationNationalStandard.getStandType());
|
||||
sar.setStandName(sarInterpretationNationalStandard.getStandName());
|
||||
sar.setStandType(sarInterpretationNationalStandard.getStandType());
|
||||
sar.setInterpretationTime(sarInterpretationNationalStandard.getInterpretationTime());
|
||||
sarStandardComplianceProductAssessDao.insert(sar);
|
||||
}
|
||||
// List<SarStandardComplianceProductAssess> assessList = sarStandardComplianceProductAssessDao.selectList(queryWrapper);
|
||||
// if (assessList.isEmpty()){
|
||||
// SarStandardComplianceProductAssess sar=new SarStandardComplianceProductAssess();
|
||||
// sar.setId(UUIDUtils.randomUUID(32));
|
||||
// sar.setStandId(sarInterpretationNationalStandard.getStandId());
|
||||
// sar.setStandNumber(sarInterpretationNationalStandard.getStandNumber());
|
||||
// sar.setStandType(sarInterpretationNationalStandard.getStandType());
|
||||
// sar.setStandName(sarInterpretationNationalStandard.getStandName());
|
||||
// sar.setStandType(sarInterpretationNationalStandard.getStandType());
|
||||
// sar.setInterpretationTime(sarInterpretationNationalStandard.getInterpretationTime());
|
||||
// sarStandardComplianceProductAssessDao.insert(sar);
|
||||
// }
|
||||
});
|
||||
String res = flag ? "1":"0";
|
||||
return res;
|
||||
|
||||
@@ -643,7 +643,7 @@
|
||||
|
||||
|
||||
<select id="selectAllItemsByIds" resultType="com.adc.da.slrs.sarStandItems.entity.SarStandItemsDto">
|
||||
select ID,STAND_ID,ITEMS_NUM,ITEMS_NAME,RESPONSIBLE_UNIT,SVPPS,APPLY_ARCTIC,CLAIM_TYPE,BUS_STAND_COVER,DUTY_ENGINEER as responsibleEngineer
|
||||
select ID,STAND_ID,ITEMS_NUM,ITEMS_NAME,RESPONSIBLE_UNIT,SVPPS,APPLY_ARCTIC,CLAIM_TYPE,BUS_STAND_COVER,DUTY_ENGINEER as responsibleEngineer,XCXSSRQ as xcxssrq,ZCCSSRQ as zccssrq
|
||||
from SAR_STAND_ITEMS
|
||||
where FILE_TYPE=#{type}
|
||||
<if test="ids != null">
|
||||
|
||||
+6
@@ -89,12 +89,16 @@
|
||||
a.STAND_YEAR as standYear,ISSUE_TIME as issueTime,a.STAND_TYPE as standType,a.TEXT_STATUS as textStatus
|
||||
FROM sar_standards_info a LEFT JOIN sar_stand_attr_info b on
|
||||
a.ID = b.STAND_ID
|
||||
left join sar_stand_items ssi on ssi.stand_id = a.id
|
||||
<where>
|
||||
<if test="standName != null">
|
||||
(a.STAND_NUMBER LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%')
|
||||
or a.STAND_NAME LIKE concat ('%',#{standName,jdbcType=VARCHAR},'%'))
|
||||
and
|
||||
</if>
|
||||
<if test="fileType !=null">
|
||||
ssi.FILE_TYPE = #{fileType} and
|
||||
</if>
|
||||
<if test="standType !=null">
|
||||
a.STAND_TYPE = #{standType} and
|
||||
</if>
|
||||
@@ -103,6 +107,8 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
</where>
|
||||
group by a.ID
|
||||
limit #{start},#{end}
|
||||
</select>
|
||||
<select id="selectTimes" resultType="com.adc.da.slrs.sarLawsAttrDetailedList.entity.StandRegionalTimeDto">
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user