标准分解单 分页
This commit is contained in:
@@ -13,7 +13,7 @@ import java.util.List;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
@FeignClient(value = "bat-wkflow")
|
@FeignClient(value = "bat-wkflow-zhaokaiyao")
|
||||||
//@FeignClient(value = "shan")
|
//@FeignClient(value = "shan")
|
||||||
public interface workFlowFeignClient {
|
public interface workFlowFeignClient {
|
||||||
|
|
||||||
|
|||||||
+5
-2
@@ -1,6 +1,7 @@
|
|||||||
package com.adc.da.slrs.sarStandItems.controller;
|
package com.adc.da.slrs.sarStandItems.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.adc.da.http.PageInfo;
|
||||||
import com.adc.da.http.ResponseMessage;
|
import com.adc.da.http.ResponseMessage;
|
||||||
import com.adc.da.http.Result;
|
import com.adc.da.http.Result;
|
||||||
|
|
||||||
@@ -55,9 +56,11 @@ public class SarStandItemsController extends BaseController<SarStandItems> {
|
|||||||
@ApiOperation(value = "分解单查询")
|
@ApiOperation(value = "分解单查询")
|
||||||
@GetMapping("/querySarItemAndInterpretation")
|
@GetMapping("/querySarItemAndInterpretation")
|
||||||
public ResponseMessage querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
public ResponseMessage querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
||||||
List<SarItemVO> sarItemVOS = ServiceImpl.querySarItemAndInterpretation(page);
|
List<SarStandItems> rows = ServiceImpl.querySarItemAndInterpretation(page);
|
||||||
|
|
||||||
return Result.success("200",sarItemVOS);
|
PageInfo<SarStandItems> pageInfo = getPageInfo(page.getPager(), rows);
|
||||||
|
|
||||||
|
return Result.success(pageInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,10 @@ import java.util.Set;
|
|||||||
@Repository
|
@Repository
|
||||||
public interface SarStandItemsDao extends BaseMapper<SarStandItems> {
|
public interface SarStandItemsDao extends BaseMapper<SarStandItems> {
|
||||||
|
|
||||||
List<SarItemVO> querySarItemAndInterpretation(FindSarItemsPageReqDTO page);
|
List<SarStandItems> querySarItemAndInterpretation(FindSarItemsPageReqDTO page);
|
||||||
|
|
||||||
|
Integer sarItemCount(FindSarItemsPageReqDTO page);
|
||||||
|
|
||||||
|
|
||||||
List<SarStandItems> querySarStandItemsList(SarStandItemsEOPage page);
|
List<SarStandItems> querySarStandItemsList(SarStandItemsEOPage page);
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -10,7 +10,7 @@ import java.util.Date;
|
|||||||
|
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class FindSarItemsPageReqDTO {
|
public class FindSarItemsPageReqDTO extends BasePage {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
private Integer page = 1;
|
private Integer page = 1;
|
||||||
|
|||||||
@@ -27,8 +27,6 @@ public class SarItemVO extends BaseEntity {
|
|||||||
@ApiModelProperty(value = "条款名称")
|
@ApiModelProperty(value = "条款名称")
|
||||||
private String itemsName;
|
private String itemsName;
|
||||||
|
|
||||||
@ApiModelProperty(value = "条款内容(未使用)")
|
|
||||||
private String itemsTitle;
|
|
||||||
|
|
||||||
@ApiModelProperty(value = "条款内容--条款要求")
|
@ApiModelProperty(value = "条款内容--条款要求")
|
||||||
private String termsConditions;
|
private String termsConditions;
|
||||||
@@ -66,4 +64,7 @@ public class SarItemVO extends BaseEntity {
|
|||||||
|
|
||||||
@ApiModelProperty(value = "解读内容--核心技术要点")
|
@ApiModelProperty(value = "解读内容--核心技术要点")
|
||||||
private String interpretationContent;
|
private String interpretationContent;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import lombok.experimental.Accessors;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author super_liu
|
* @author super_liu
|
||||||
@@ -132,6 +132,15 @@ public class SarStandItems extends BaseEntity {
|
|||||||
@TableField("ZCCSSRQ")
|
@TableField("ZCCSSRQ")
|
||||||
private Date zccssrq;
|
private Date zccssrq;
|
||||||
|
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "符合性要求-符合性状态")
|
||||||
|
@TableField("COMPLIANCE_REQUIR")
|
||||||
|
private String complianceRequire;
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "解读内容--核心技术要点")
|
||||||
|
@TableField("core_technical_requirement")
|
||||||
|
private String interpretationContent;
|
||||||
|
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String emergyKindShow;
|
private String emergyKindShow;
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
|
|||||||
+11
-2
@@ -11,6 +11,7 @@ import com.adc.da.slrs.sarStandardsInfo.entity.ActSarItemsEO;
|
|||||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo;
|
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfo;
|
||||||
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage;
|
import com.adc.da.slrs.sarStandardsInfo.entity.SarStandardsInfoEOPage;
|
||||||
import com.adc.da.slrs.sysInfo.service.SysInfoEOService;
|
import com.adc.da.slrs.sysInfo.service.SysInfoEOService;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
@@ -191,7 +192,15 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public List<SarItemVO> querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
public List<SarStandItems> querySarItemAndInterpretation(FindSarItemsPageReqDTO page){
|
||||||
return dao.querySarItemAndInterpretation(page);
|
|
||||||
|
|
||||||
|
|
||||||
|
Integer count=dao.sarItemCount(page);
|
||||||
|
page.getPager().setRowCount(count);
|
||||||
|
|
||||||
|
|
||||||
|
List<SarStandItems> sarStandItems = dao.querySarItemAndInterpretation(page);
|
||||||
|
return sarStandItems;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+17
-4
@@ -599,10 +599,17 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
FindSarItemsPageReqDTO pageInfo = new FindSarItemsPageReqDTO();
|
FindSarItemsPageReqDTO pageInfo = new FindSarItemsPageReqDTO();
|
||||||
pageInfo.setStandId(sarStandardsInfoEO.getId());
|
pageInfo.setStandId(sarStandardsInfoEO.getId());
|
||||||
pageInfo.setFileType("FBGBJBD");
|
pageInfo.setFileType("FBGBJBD");
|
||||||
List<SarItemVO> sarItemVOS = standItemsDao.querySarItemAndInterpretation(pageInfo);
|
|
||||||
|
/**
|
||||||
|
* SarItemVO换为sarItemVOS
|
||||||
|
* List<SarItemVO> sarItemVOS = standItemsDao.querySarItemAndInterpretation(pageInfo);
|
||||||
|
* .collect(Collectors.toMap(SarItemVO::getItemsNum, SarItemVO::getItemsName));
|
||||||
|
*/
|
||||||
|
|
||||||
|
List<SarStandItems> sarItemVOS = standItemsDao.querySarItemAndInterpretation(pageInfo);
|
||||||
if(!sarItemVOS.isEmpty()){
|
if(!sarItemVOS.isEmpty()){
|
||||||
Map<String,String> collectMap = sarItemVOS.stream().filter((e) -> e.getItemsNum() != null && e.getItemsName() != null)
|
Map<String,String> collectMap = sarItemVOS.stream().filter((e) -> e.getItemsNum() != null && e.getItemsName() != null)
|
||||||
.collect(Collectors.toMap(SarItemVO::getItemsNum, SarItemVO::getItemsName));
|
.collect(Collectors.toMap(SarStandItems::getItemsNum, SarStandItems::getItemsName));
|
||||||
sarStandardsInfoEO.setMapItems(collectMap);
|
sarStandardsInfoEO.setMapItems(collectMap);
|
||||||
}
|
}
|
||||||
createStandMQService.sendStandMQ(sarStandardsInfoEO,"add");
|
createStandMQService.sendStandMQ(sarStandardsInfoEO,"add");
|
||||||
@@ -1179,10 +1186,16 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
FindSarItemsPageReqDTO pageInfo = new FindSarItemsPageReqDTO();
|
FindSarItemsPageReqDTO pageInfo = new FindSarItemsPageReqDTO();
|
||||||
pageInfo.setStandId(sarStandardsInfoEO.getId());
|
pageInfo.setStandId(sarStandardsInfoEO.getId());
|
||||||
pageInfo.setFileType("FBGBJBD");
|
pageInfo.setFileType("FBGBJBD");
|
||||||
List<SarItemVO> sarItemVOS = standItemsDao.querySarItemAndInterpretation(pageInfo);
|
|
||||||
|
/**
|
||||||
|
* SarItemVO换为SarItemVOS
|
||||||
|
* List<SarItemVO> sarItemVOS = standItemsDao.querySarItemAndInterpretation(pageInfo);
|
||||||
|
* .collect(Collectors.toMap(SarItemVO::getItemsNum, SarItemVO::getItemsName));
|
||||||
|
*/
|
||||||
|
List<SarStandItems> sarItemVOS = standItemsDao.querySarItemAndInterpretation(pageInfo);
|
||||||
if(!sarItemVOS.isEmpty()){
|
if(!sarItemVOS.isEmpty()){
|
||||||
Map<String,String> collectMap = sarItemVOS.stream().filter((e) -> e.getItemsNum() != null && e.getItemsName() != null)
|
Map<String,String> collectMap = sarItemVOS.stream().filter((e) -> e.getItemsNum() != null && e.getItemsName() != null)
|
||||||
.collect(Collectors.toMap(SarItemVO::getItemsNum, SarItemVO::getItemsName));
|
.collect(Collectors.toMap(SarStandItems::getItemsNum, SarStandItems::getItemsName));
|
||||||
sarStandardsInfoEO.setMapItems(collectMap);
|
sarStandardsInfoEO.setMapItems(collectMap);
|
||||||
}
|
}
|
||||||
createStandMQService.sendStandMQ(sarStandardsInfoEO,"update");
|
createStandMQService.sendStandMQ(sarStandardsInfoEO,"update");
|
||||||
|
|||||||
+38
-26
@@ -51,15 +51,14 @@
|
|||||||
<result column="foShow" property="foShow"/>
|
<result column="foShow" property="foShow"/>
|
||||||
</resultMap>
|
</resultMap>
|
||||||
|
|
||||||
<resultMap id="sarItemVOResultMap" type="com.adc.da.slrs.sarStandItems.entity.SarItemVO">
|
<resultMap id="sarItemVOResultMap" type="com.adc.da.slrs.sarStandItems.entity.SarStandItems">
|
||||||
<id column="id" property="id"/>
|
<id column="id" property="id"/>
|
||||||
<result column="STAND_ID" property="standId"/>
|
<result column="STAND_ID" property="standId"/>
|
||||||
<result column="ITEMS_NUM" property="itemsNum"/>
|
<result column="ITEMS_NUM" property="itemsNum"/>
|
||||||
<result column="ITEMS_NAME" property="itemsName"/>
|
<result column="ITEMS_NAME" property="itemsName"/>
|
||||||
<result column="ITEMS_TITLE" property="itemsTitle"/>
|
|
||||||
<result column="TERMS_CONDITIONS" property="termsConditions"/>
|
<result column="TERMS_CONDITIONS" property="termsConditions"/>
|
||||||
<result column="XCXSSRQ" property="XCXSSRQ"/>
|
<result column="XCXSSRQ" property="xccssrq"/>
|
||||||
<result column="ZCCSSRQ" property="ZCCSSRQ"/>
|
<result column="ZCCSSRQ" property="zccssrq"/>
|
||||||
<result column="APPLY_ARCTIC" property="applyArctic"/>
|
<result column="APPLY_ARCTIC" property="applyArctic"/>
|
||||||
<result column="RESPONSIBLE_UNIT" property="responsibleUnit"/>
|
<result column="RESPONSIBLE_UNIT" property="responsibleUnit"/>
|
||||||
<result column="DUTY_ENGINEER" property="dutyEngineer"/>
|
<result column="DUTY_ENGINEER" property="dutyEngineer"/>
|
||||||
@@ -367,41 +366,54 @@
|
|||||||
|
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!-- SAR_STAND_ITEMS 列表总数-->
|
<!-- SAR_STAND_ITEMS 列表总数-->
|
||||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||||
select count(1) from SAR_STAND_ITEMS
|
select count(1) from SAR_STAND_ITEMS
|
||||||
<include refid="Base_Where_Clause"/>
|
<include refid="Base_Where_Clause"/>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<sql id="sarItemWhere">
|
||||||
|
<where>
|
||||||
|
<if test="standId!=null and standId!=''">
|
||||||
|
and stand_id=#{standId}
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="fileType !=null and fileType!=''">
|
||||||
|
and file_type=#{fileType}
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="itemsName != null and itemsName!=''">
|
||||||
|
and ITEMS_NAME=#{itemsName}
|
||||||
|
</if>
|
||||||
|
<if test="XCXSSRQ !=null and XCXSSRQ!=''">
|
||||||
|
and XCXSSRQ=#{XCXSSRQ}
|
||||||
|
</if>
|
||||||
|
<if test="ZCCSSRQ !=null and ZCCSSRQ != ''">
|
||||||
|
and ZCCSSRQ=#{ZCCSSRQ}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="sarItemCount" parameterType="com.adc.da.slrs.sarStandItems.entity.FindSarItemsPageReqDTO" resultType="java.lang.Integer">
|
||||||
|
SELECT COUNT( 1 ) FROM sar_stand_items
|
||||||
|
<include refid="sarItemWhere"/>
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
<select id="querySarItemAndInterpretation" resultMap="sarItemVOResultMap"
|
<select id="querySarItemAndInterpretation" resultMap="sarItemVOResultMap"
|
||||||
parameterType="com.adc.da.slrs.sarStandItems.entity.FindSarItemsPageReqDTO">
|
parameterType="com.adc.da.slrs.sarStandItems.entity.FindSarItemsPageReqDTO">
|
||||||
SELECT
|
SELECT
|
||||||
*
|
*
|
||||||
FROM
|
FROM
|
||||||
sar_stand_items AS a
|
sar_stand_items
|
||||||
<where>
|
<include refid="sarItemWhere"/>
|
||||||
|
|
||||||
<if test="standId!=null and standId!=''">
|
|
||||||
and a.stand_id=#{standId}
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<if test="fileType !=null and fileType!=''">
|
|
||||||
and a.file_type=#{fileType}
|
|
||||||
</if>
|
|
||||||
|
|
||||||
<if test="itemsName != null and itemsName!=''">
|
|
||||||
and a.ITEMS_NAME=#{itemsName}
|
|
||||||
</if>
|
|
||||||
<if test="XCXSSRQ !=null and XCXSSRQ!=''">
|
|
||||||
and a.XCXSSRQ=#{XCXSSRQ}
|
|
||||||
</if>
|
|
||||||
<if test="ZCCSSRQ !=null and ZCCSSRQ != ''">
|
|
||||||
and a.ZCCSSRQ=#{ZCCSSRQ}
|
|
||||||
</if>
|
|
||||||
</where>
|
|
||||||
LIMIT #{page},#{pageSize}
|
LIMIT #{page},#{pageSize}
|
||||||
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<!-- 查询SAR_STAND_ITEMS列表 -->
|
<!-- 查询SAR_STAND_ITEMS列表 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user