责任部门导出和日历修改 bug修复
This commit is contained in:
+6
@@ -66,4 +66,10 @@ public class SapMeetingController extends BaseController<SapMeeting> {
|
||||
public int addMeeting(@RequestBody SapMeeting sapMeeting){
|
||||
return sapMeetingService.addMeeting(sapMeeting);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "修改会议")
|
||||
@PostMapping("/updateMeeting")
|
||||
public boolean updateMeeting(@RequestBody SapMeeting sapMeeting){
|
||||
return sapMeetingService.updateById(sapMeeting);
|
||||
}
|
||||
}
|
||||
|
||||
+5
-13
@@ -419,13 +419,9 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
p.setEndTimes(s.getEndTimes());
|
||||
for (SarStandAttrInfo a:list2){
|
||||
if(s.getId().equals(a.getStandId())){
|
||||
// p.setCYCVPPSBM(a.getCycvppsbm());
|
||||
// p.setCYCVPPSCN(a.getCycvppscn());
|
||||
p.setSSRQ(a.getSsrq());
|
||||
p.setXCXSSRQ(a.getXcxssrq());
|
||||
p.setZCCSSRQ(a.getZccssrq());
|
||||
// p.setKCCVPPSBM(a.getKccvppsbm());
|
||||
// p.setKCCVPPSCN(a.getKccvppscn());
|
||||
p.setZRBM(a.getZrbm());
|
||||
}
|
||||
}
|
||||
@@ -480,7 +476,7 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
String idmis=String.join(",",ids);
|
||||
System.out.println(idmis);
|
||||
QueryWrapper<SarStandardsInfo> wrapper1 = new QueryWrapper<>();
|
||||
wrapper1.select("ID","STAND_NUMBER","STAND_NAME","STAND_EN_NAME");
|
||||
wrapper1.select("ID","STAND_NUMBER","STAND_NAME","STAND_EN_NAME","STAND_TYPE","STAND_YEAR","STAND_SORT");
|
||||
wrapper1.last("INNER JOIN sar_stand_project_relation r ON r.stand_id = sar_standards_info.ID WHERE r.stand_id in ("+ idmis +") and r.project_id = '"+ id+"'");
|
||||
List<SarStandardsInfo> userList1 = SarStandardsInfoDao.selectList(wrapper1);
|
||||
QueryWrapper<SarStandAttrInfo> wrapper2 = new QueryWrapper<>();
|
||||
@@ -516,24 +512,20 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
}
|
||||
for(SarStandardsInfo s:userList1){
|
||||
StandAttrInfoDto p =new StandAttrInfoDto();
|
||||
p.setStandNumber(s.getStandNumber());
|
||||
p.setStandNumber(s.getStandSort()+" "+s.getStandNumber()+"-"+s.getStandYear());
|
||||
p.setStandName(s.getStandName());
|
||||
p.setStandEnName(s.getStandEnName());
|
||||
for (SarStandAttrInfo a:userList2){
|
||||
if(s.getId().equals(a.getStandId())){
|
||||
// p.setCYCVPPSBM(a.getCycvppsbm());
|
||||
// p.setCYCVPPSCN(a.getCycvppscn());
|
||||
if (a.getSsrq()!=null){
|
||||
p.setSSRQ(a.getSsrq().substring(0,10));
|
||||
p.setSSRQ(a.getSsrq());
|
||||
}
|
||||
if (a.getXcxssrq()!=null){
|
||||
p.setXCXSSRQ(a.getXcxssrq().substring(0,10));
|
||||
p.setXCXSSRQ(a.getXcxssrq());
|
||||
}
|
||||
if (a.getZccssrq()!=null){
|
||||
p.setZCCSSRQ(a.getZccssrq().substring(0,10));
|
||||
p.setZCCSSRQ(a.getZccssrq());
|
||||
}
|
||||
// p.setKCCVPPSBM(a.getKccvppsbm());
|
||||
// p.setKCCVPPSCN(a.getKccvppscn());
|
||||
p.setZRBM(a.getZrbm());
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -123,6 +123,8 @@ public class SarStandFileEOController extends BaseController<SarStandFileEO> {
|
||||
page.setFileSuffixList(suffix.split(","));
|
||||
}
|
||||
List<SarStandFileEO> rows = sarStandFileEOService.getStandFileListByPage(page);
|
||||
Integer count = sarStandFileEOService.getStandFileListByPageCount(page);
|
||||
page.getPager().setRowCount(count);
|
||||
for (SarStandFileEO one:rows) {
|
||||
one.setAttId(one.getAttId1());
|
||||
}
|
||||
|
||||
@@ -32,6 +32,8 @@ public interface SarStandFileEODao extends BaseMapper<SarStandFileEO> {
|
||||
|
||||
List<SarStandFileEO> getStandFileListByPage(SarStandFileEOPage stand);
|
||||
|
||||
Integer getStandFileListByPageCount(SarStandFileEOPage stand);
|
||||
|
||||
int queryStandFileListByCount(SarStandFileEOPage stand);
|
||||
|
||||
List<SarStandFileEO> queryByPage(SarStandFileEOPage page);
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package com.adc.da.slrs.standardSplit.entity;
|
||||
|
||||
import com.adc.da.base.page.BasePage;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_STAND_FILE SarStandFileEOPage<br>
|
||||
@@ -8,6 +9,7 @@ import com.adc.da.base.page.BasePage;
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Data
|
||||
public class SarStandFileEOPage extends BasePage {
|
||||
|
||||
private String modifyTime;
|
||||
@@ -36,6 +38,7 @@ public class SarStandFileEOPage extends BasePage {
|
||||
private String standName;
|
||||
private String fileType;
|
||||
private String standFileClassify;
|
||||
private int rowCount;
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
|
||||
+2
@@ -9,6 +9,8 @@ public interface SarStandFileEOService {
|
||||
|
||||
List<SarStandFileEO> getStandFileListByPage(SarStandFileEOPage stand);
|
||||
|
||||
Integer getStandFileListByPageCount(SarStandFileEOPage stand);
|
||||
|
||||
List<SarStandFileEO> queryByPage(SarStandFileEOPage page);
|
||||
|
||||
List<SarStandFileEO> queryByList(SarStandFileEOPage page);
|
||||
|
||||
+5
@@ -37,6 +37,11 @@ public class SarStandFileEOServiceImpl implements SarStandFileEOService {
|
||||
return sarStandFileEODao.getStandFileListByPage(stand);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Integer getStandFileListByPageCount(SarStandFileEOPage stand){
|
||||
return sarStandFileEODao.getStandFileListByPageCount(stand);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarStandFileEO> queryByPage(SarStandFileEOPage page){
|
||||
return sarStandFileEODao.queryByPage(page);
|
||||
|
||||
@@ -312,6 +312,56 @@
|
||||
) tmp_tb limit ${pager.startIndex-1},${pageSize}) a
|
||||
</select>
|
||||
|
||||
<select id="getStandFileListByPageCount" parameterType="com.adc.da.base.page.BasePage"
|
||||
resultType="java.lang.Integer">
|
||||
select count(*) from
|
||||
(select tmp_tb.* from
|
||||
(
|
||||
SELECT
|
||||
SAR_STAND_FILE.id AS resId,
|
||||
SAR_STAND_FILE.stand_id,
|
||||
SAR_STAND_FILE.STAND_FILE_CLASSIFY,
|
||||
SAR_STAND_FILE.file_name,
|
||||
(
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) ) AS standNumber,
|
||||
SAR_STANDARDS_INFO.stand_name as standName,
|
||||
SAR_STAND_FILE.att_id AS attId1,
|
||||
SAR_STANDARDS_INFO.STAND_TYPE as sarType
|
||||
FROM
|
||||
SAR_STAND_FILE
|
||||
RIGHT JOIN SAR_STANDARDS_INFO ON ( SAR_STAND_FILE.STAND_ID = SAR_STANDARDS_INFO.ID AND SAR_STANDARDS_INFO.VALID_FLAG = 0 )
|
||||
where SAR_STANDARDS_INFO.VALID_FLAG =0 and SAR_STAND_FILE.VALID_FLAG =0
|
||||
<if test="fileSuffixList != null">
|
||||
and SAR_STAND_FILE.file_suffix in
|
||||
<foreach collection="fileSuffixList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="standNumber != null">
|
||||
and
|
||||
if(
|
||||
SAR_STANDARDS_INFO.STAND_YEAR='',
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number),
|
||||
CONCAT(SAR_STANDARDS_INFO.stand_sort,' ',SAR_STANDARDS_INFO.stand_number,'-',SAR_STANDARDS_INFO.stand_year)
|
||||
) like concat(concat('%',#{standNumber}),'%')
|
||||
</if>
|
||||
<if test="standName != null">
|
||||
and SAR_STANDARDS_INFO.stand_name like concat(concat ('%',#{standName}),'%')
|
||||
</if>
|
||||
<if test="standFileClassify != null">
|
||||
and SAR_STAND_FILE.STAND_FILE_CLASSIFY = #{standFileClassify}
|
||||
</if>
|
||||
<if test="fileType != null">
|
||||
and SAR_STANDARDS_INFO.STAND_TYPE = #{fileType}
|
||||
</if>
|
||||
order by SAR_STAND_FILE.modify_time desc,SAR_STAND_FILE.id
|
||||
) tmp_tb ) a
|
||||
</select>
|
||||
|
||||
<select id="queryStandFileListByCount" resultType="java.lang.Integer" parameterType="com.adc.da.base.page.BasePage">
|
||||
select count(1) from (
|
||||
SELECT
|
||||
|
||||
Reference in New Issue
Block a user