Merge remote-tracking branch 'origin/develop_1' into develop_1
This commit is contained in:
@@ -17,6 +17,9 @@ import java.util.Set;
|
|||||||
//@FeignClient(value = "shan6")
|
//@FeignClient(value = "shan6")
|
||||||
public interface workFlowFeignClient {
|
public interface workFlowFeignClient {
|
||||||
|
|
||||||
|
@RequestMapping(value = "/bat-wkflow/task/get_verify_by_instance",method = RequestMethod.GET)
|
||||||
|
long get_verify_by_instance(@RequestParam("taskId") String taskId, @RequestParam("pId") String pId);
|
||||||
|
|
||||||
@RequestMapping(value = "/bat-wkflow/activiti_define_start_user",method = RequestMethod.GET)
|
@RequestMapping(value = "/bat-wkflow/activiti_define_start_user",method = RequestMethod.GET)
|
||||||
Wrapper<String> activiti_define_start(@RequestParam("id") String id, @RequestParam("userId") String userId, @RequestParam("bpnId") String bpnId);
|
Wrapper<String> activiti_define_start(@RequestParam("id") String id, @RequestParam("userId") String userId, @RequestParam("bpnId") String bpnId);
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,11 @@ public class workFlowFeignClientImpl {
|
|||||||
@Autowired
|
@Autowired
|
||||||
private IUserEOService userEOService;
|
private IUserEOService userEOService;
|
||||||
|
|
||||||
|
public long get_verify_by_instance(@RequestParam("taskId") String taskId, @RequestParam("pId") String pId){
|
||||||
|
long stringWrapper = workFlowFeignClient.get_verify_by_instance(taskId,pId);
|
||||||
|
return stringWrapper;
|
||||||
|
}
|
||||||
|
|
||||||
public ResponseMessage activiti_define_start(@RequestParam("Id") String Id, @RequestParam("userId") String userId, @RequestParam("bpnId") String bpnId){
|
public ResponseMessage activiti_define_start(@RequestParam("Id") String Id, @RequestParam("userId") String userId, @RequestParam("bpnId") String bpnId){
|
||||||
Wrapper<String> stringWrapper = workFlowFeignClient.activiti_define_start(Id,userId,bpnId);
|
Wrapper<String> stringWrapper = workFlowFeignClient.activiti_define_start(Id,userId,bpnId);
|
||||||
return Result.success(stringWrapper.getResult());
|
return Result.success(stringWrapper.getResult());
|
||||||
|
|||||||
@@ -51,6 +51,12 @@ public class WorkFlowController {
|
|||||||
// @Autowired
|
// @Autowired
|
||||||
// private ExportExcelMapper exportExcelMapper;
|
// private ExportExcelMapper exportExcelMapper;
|
||||||
|
|
||||||
|
@ApiOperation(value = "流程实例明细验证是否完成")
|
||||||
|
@GetMapping("/get_verify_by_instance")
|
||||||
|
public long activiti_define_start1(@RequestParam("taskId") String taskId, @RequestParam("pId") String pId){
|
||||||
|
return workFlowFeignClient.get_verify_by_instance(taskId,pId);
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "导出excel")
|
@ApiOperation(value = "导出excel")
|
||||||
@PostMapping("/export_excel")
|
@PostMapping("/export_excel")
|
||||||
public void exportExcel(@RequestBody ExportExcelEO exportExcelEO, HttpServletResponse response, HttpServletRequest request) throws IOException {
|
public void exportExcel(@RequestBody ExportExcelEO exportExcelEO, HttpServletResponse response, HttpServletRequest request) throws IOException {
|
||||||
|
|||||||
@@ -27,7 +27,9 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.artofsolving</groupId>
|
<groupId>com.artofsolving</groupId>
|
||||||
<artifactId>jodconverter</artifactId>
|
<artifactId>jodconverter</artifactId>
|
||||||
<version>2.2.1</version>
|
<scope>system</scope>
|
||||||
|
<version>2.2.2</version>
|
||||||
|
<systemPath>${basedir}/src/main/lib/jodconverter-2.2.2.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jodconverter</groupId>
|
<groupId>org.jodconverter</groupId>
|
||||||
|
|||||||
+1
-2
@@ -55,8 +55,7 @@ public class SarPublicIdeaServiceImpl extends ServiceImpl<SarPublicIdeaDao, SarP
|
|||||||
} else {
|
} else {
|
||||||
list.like(StringUtils.isNotEmpty(category), "category", category)
|
list.like(StringUtils.isNotEmpty(category), "category", category)
|
||||||
.like(StringUtils.isNotEmpty(cname), "cname", cname)
|
.like(StringUtils.isNotEmpty(cname), "cname", cname)
|
||||||
.ge(start != null, "start_time", start)
|
.ge("end_time", new Date())
|
||||||
.le(end != null, "end_time", end)
|
|
||||||
.orderByAsc("end_time");
|
.orderByAsc("end_time");
|
||||||
}
|
}
|
||||||
Page<SarPublicIdea> page = new Page<>(p, size);
|
Page<SarPublicIdea> page = new Page<>(p, size);
|
||||||
|
|||||||
+46
-3
@@ -19,8 +19,7 @@ import org.apache.commons.lang3.StringUtils;
|
|||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -193,7 +192,35 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<SarStandItemsDto> findAllItems(String type,String[] ids){
|
public List<SarStandItemsDto> findAllItems(String type,String[] ids){
|
||||||
return dao.selectAllItemsByIds(type,ids);
|
List<SarStandItemsDto> list=dao.selectAllItemsByIds(type,ids);
|
||||||
|
List<SarStandItemsDto> res=new ArrayList<>();
|
||||||
|
if (null == list || list.isEmpty()){
|
||||||
|
return list;
|
||||||
|
}else {
|
||||||
|
List<Integer> integerList=new ArrayList<>();
|
||||||
|
Map<Integer,List<SarStandItemsDto>> map=new HashMap<>();
|
||||||
|
list.forEach(sarStandItemsDto -> {
|
||||||
|
int a= sarStandItemsDto.getItemsNum().indexOf(".");
|
||||||
|
String mark=sarStandItemsDto.getItemsNum();
|
||||||
|
if (a>0){
|
||||||
|
mark=mark.substring(0,a);
|
||||||
|
}
|
||||||
|
if (null != map.get(Integer.valueOf(mark))){
|
||||||
|
map.get(Integer.valueOf(mark)).add(sarStandItemsDto);
|
||||||
|
}else {
|
||||||
|
integerList.add(Integer.valueOf(mark));
|
||||||
|
List<SarStandItemsDto> middle=new ArrayList<>();
|
||||||
|
middle.add(sarStandItemsDto);
|
||||||
|
map.put(Integer.valueOf(mark),middle);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
Collections.sort(integerList);
|
||||||
|
integerList.forEach(integer -> {
|
||||||
|
res.addAll(map.get(integer));
|
||||||
|
});
|
||||||
|
|
||||||
|
return res;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -201,6 +228,22 @@ public class SarStandItemsServiceImpl extends ServiceImpl<SarStandItemsDao, SarS
|
|||||||
//分页查询的总数
|
//分页查询的总数
|
||||||
Integer count=dao.sarItemCount(page);
|
Integer count=dao.sarItemCount(page);
|
||||||
page.getPager().setRowCount(count);
|
page.getPager().setRowCount(count);
|
||||||
|
|
||||||
|
//排序
|
||||||
|
if (page.getOrderBy()!=null && page.getOrder()!=null){
|
||||||
|
|
||||||
|
switch (page.getOrderBy()){
|
||||||
|
case "itemsNum" : page.setOrderBy("ITEMS_NUM"); break;
|
||||||
|
default:page.setOrderBy("ITEMS_NUM"); page.setOrder("DESC");
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (page.getOrder()){
|
||||||
|
case "descending":page.setOrder("DESC");break;
|
||||||
|
default:page.setOrder("ASC");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
List<SarStandItems> sarStandItems = dao.querySarItemAndInterpretation(page);
|
List<SarStandItems> sarStandItems = dao.querySarItemAndInterpretation(page);
|
||||||
return sarStandItems;
|
return sarStandItems;
|
||||||
}
|
}
|
||||||
|
|||||||
+14
@@ -439,11 +439,16 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
return resultMap;
|
return resultMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void attrInfoShowDetails(List<SarStandardsInfo> sarlist) throws Exception {
|
public void attrInfoShowDetails(List<SarStandardsInfo> sarlist) throws Exception {
|
||||||
for (SarStandardsInfo row : sarlist) {
|
for (SarStandardsInfo row : sarlist) {
|
||||||
attrInfoDetails(row);
|
attrInfoDetails(row);
|
||||||
Map<String, Object> getAttrMap = row.getAttrInfoMap();
|
Map<String, Object> getAttrMap = row.getAttrInfoMap();
|
||||||
if (getAttrMap != null && getAttrMap.size() > 0) {
|
if (getAttrMap != null && getAttrMap.size() > 0) {
|
||||||
|
//存在的分解单文本名称列表
|
||||||
|
LinkedList<String> itemExistList = new LinkedList<>();
|
||||||
|
getAttrMap.put("itemExistList",itemExistList);
|
||||||
for (Map.Entry<String, Object> entry : getAttrMap.entrySet()) {
|
for (Map.Entry<String, Object> entry : getAttrMap.entrySet()) {
|
||||||
String name = entry.getKey();
|
String name = entry.getKey();
|
||||||
String value = "";
|
String value = "";
|
||||||
@@ -452,6 +457,15 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
if (StringUtils.isNotBlank(value)) {
|
if (StringUtils.isNotBlank(value)) {
|
||||||
List<AttFileEO> fileObj = attFileEOService.getMultiFileInfos(value);
|
List<AttFileEO> fileObj = attFileEOService.getMultiFileInfos(value);
|
||||||
entry.setValue(fileObj);
|
entry.setValue(fileObj);
|
||||||
|
//以标准id和文本类型查询分解单表 有数据设标记为为 1
|
||||||
|
FindSarItemsPageReqDTO sarItemCount = new FindSarItemsPageReqDTO();
|
||||||
|
sarItemCount.setStandId(row.getId());
|
||||||
|
sarItemCount.setFileType(name);
|
||||||
|
Integer sarItemsCount = standItemsDao.sarItemCount(sarItemCount);
|
||||||
|
if (sarItemsCount>0){
|
||||||
|
//存在分解单的文本名称存入列表
|
||||||
|
itemExistList.add(name);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}else if (entry.getValue() != null && InitStandAttrUtil.selectionFieldList != null && InitStandAttrUtil.selectionFieldList.size() > 0 && InitStandAttrUtil.selectionFieldList.contains(name)) {
|
}else if (entry.getValue() != null && InitStandAttrUtil.selectionFieldList != null && InitStandAttrUtil.selectionFieldList.size() > 0 && InitStandAttrUtil.selectionFieldList.contains(name)) {
|
||||||
value = entry.getValue().toString();
|
value = entry.getValue().toString();
|
||||||
|
|||||||
@@ -412,7 +412,11 @@
|
|||||||
FROM
|
FROM
|
||||||
sar_stand_items
|
sar_stand_items
|
||||||
<include refid="sarItemWhere"/>
|
<include refid="sarItemWhere"/>
|
||||||
LIMIT #{page},#{pageSize}
|
|
||||||
|
<if test="orderBy !=null and orderBy!=''">
|
||||||
|
order by ${orderBy} ${order}
|
||||||
|
</if>
|
||||||
|
LIMIT ${page-1},#{pageSize}
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
@@ -738,6 +742,7 @@
|
|||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
</if>
|
</if>
|
||||||
|
order by ITEMS_NUM
|
||||||
</select>
|
</select>
|
||||||
<select id="selectStandTime" resultType="com.adc.da.slrs.sarStandItems.entity.StandsTimeDto">
|
<select id="selectStandTime" resultType="com.adc.da.slrs.sarStandItems.entity.StandsTimeDto">
|
||||||
select STAND_ID,XCXSSRQ,ZCCSSRQ
|
select STAND_ID,XCXSSRQ,ZCCSSRQ
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
<if test="userName != null">
|
<if test="userName != null">
|
||||||
|
|
||||||
where u.uname like concat('%','${userName}','%')
|
where u.uname like concat('%','${userName}','%') or u.account like concat('%','${userName}','%')
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user