Merge remote-tracking branch 'origin/develop_master' into develop_1
This commit is contained in:
@@ -24,6 +24,7 @@ public class ActDefineStartMap {
|
||||
|
||||
map.put("8","nonConformanceRectificationKey");
|
||||
map.put("9","standardReadWkflow");
|
||||
map.put("10","itemlistvalidationprocessKey");
|
||||
return map.get(type);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@ public class DocConverterPdf {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(DocConverterPdf.class);
|
||||
|
||||
private static String OS_NAME = System.getProperty("os.name").toLowerCase();
|
||||
|
||||
private static final int ENVIRONMENT = 1;// 环境 1:windows 2:linux
|
||||
private String fileString;// (只涉及pdf2swf路径问题)
|
||||
private String outputPath = "";// 输入路径 ,如果不设置就输出在默认的位置
|
||||
@@ -238,6 +240,11 @@ public class DocConverterPdf {
|
||||
}
|
||||
|
||||
public void setConvertHost(String convertHost) {
|
||||
this.convertHost = convertHost;
|
||||
OS_NAME = OS_NAME.toLowerCase();
|
||||
if (OS_NAME.contains("win")) {
|
||||
this.convertHost = convertHost;
|
||||
} else {
|
||||
this.convertHost = "62.234.136.153";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -143,8 +143,8 @@ public class ScheduledJob {
|
||||
|
||||
|
||||
|
||||
// @Scheduled(cron = "0 0 0 * * ?") //每天的凌晨0点执行
|
||||
@Scheduled(cron="*/5 * * * * ?")
|
||||
@Scheduled(cron = "0 0 0 * * ?") //每天的凌晨0点执行
|
||||
// @Scheduled(cron="*/5 * * * * ?")
|
||||
@Async
|
||||
public void TextStatusSchedulingTasks() {
|
||||
QueryWrapper<SarStandardsInfo> wrapper = new QueryWrapper<>();
|
||||
|
||||
+9
@@ -50,6 +50,15 @@ public class SarStandProjectLibraryController extends BaseController<SarStandPro
|
||||
return Result.success("200",map);
|
||||
}
|
||||
|
||||
@GetMapping("/queryProjectConfirm")
|
||||
@ApiOperation("车型/项目库-清单标准确认流程用")
|
||||
public ResponseMessage queryMaintenanceProjectConfirm(@RequestParam(defaultValue = "1", value = "Page")int Page, @RequestParam(defaultValue = "10", value = "PageSize") int PageSize,SarStandProjectLibraryDto sarDto) {
|
||||
IPage<SarStandProjectLibrary> MaintenanceList = sarStandProjectLibraryService.queryMaintenanceProjectConfirm(Page,PageSize,sarDto);
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
map.put("total",MaintenanceList);
|
||||
return Result.success("200",map);
|
||||
}
|
||||
|
||||
@GetMapping("/queryProjectWorkFlow")
|
||||
@ApiOperation("车型/项目库-!!!")
|
||||
public ResponseMessage queryMaintenanceProjectWorkFlow(@RequestParam(defaultValue = "1", value = "Page")int Page, @RequestParam(defaultValue = "10", value = "PageSize") int PageSize,SarStandProjectLibraryDto sarDto) {
|
||||
|
||||
+1
@@ -26,4 +26,5 @@ public interface SarStandProjectLibraryDao extends BaseMapper<SarStandProjectLib
|
||||
Integer selectCountWorkFlow(@Param("qu") SarStandProjectLibrary sar,@Param("flag")int flag);
|
||||
List<String> getAllStands();
|
||||
List<String> getAllStand();
|
||||
void deleteByProjectId(@Param("projectId")String projectId);
|
||||
}
|
||||
|
||||
+1
@@ -9,6 +9,7 @@ import java.util.List;
|
||||
public interface SarStandProjectLibraryService {
|
||||
IPage<SarStandProjectLibrary> queryMaintenanceProject(int current, int pageSize, SarStandProjectLibraryDto sarDto);
|
||||
IPage<SarStandProjectLibrary> queryMaintenanceProjectWorkFlow(int current, int pageSize, SarStandProjectLibraryDto sarDto);
|
||||
IPage<SarStandProjectLibrary> queryMaintenanceProjectConfirm(int current, int pageSize, SarStandProjectLibraryDto sarDto);
|
||||
IPage<SarStandProjectLibrary> queryNotMaintenanceProject(int current, int pageSize, SarStandProjectLibraryDto sarDto);
|
||||
List<SarStandProjectLibrary> queryById(String id);
|
||||
IPage<SarStandProjectLibrary> queryProjectManager(int current, int pageSize);
|
||||
|
||||
+33
-1
@@ -98,6 +98,36 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
int flag=3;
|
||||
return getSarStandProjectLibraryIPage(current, pageSize, sar,flag);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IPage<SarStandProjectLibrary> queryMaintenanceProjectConfirm(int current, int pageSize,
|
||||
SarStandProjectLibraryDto sarDto) {
|
||||
SarStandProjectLibrary sar = new SarStandProjectLibrary();
|
||||
sar.setProjectPlatfor(sarDto.getProjectPlatfor());
|
||||
sar.setProjectNumber(sarDto.getProjectNumber());
|
||||
sar.setProjectName(sarDto.getProjectName());
|
||||
sar.setProjectClassification(sarDto.getProjectClassification());
|
||||
sar.setProjectStatus(sarDto.getProjectStatus());
|
||||
sar.setProjectGroup(sarDto.getProjectGroup());
|
||||
sar.setCurrentNode(sarDto.getCurrentNode());
|
||||
sar.setProjectLevel(sarDto.getProjectLevel());
|
||||
sar.setProjectManager(sarDto.getProjectManager());
|
||||
sar.setProductLine(sarDto.getProductLine());
|
||||
SimpleDateFormat formater = new SimpleDateFormat();
|
||||
formater.applyPattern("yyyy-MM-dd");
|
||||
try {
|
||||
if (sarDto.getProjectStartDate()!=null){
|
||||
sar.setProjectStartDate(formater.parse(sarDto.getProjectStartDate()));
|
||||
}
|
||||
if (sarDto.getProjectEndDate()!=null){
|
||||
sar.setProjectEndDate(formater.parse(sarDto.getProjectEndDate()));
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
int flag=4;
|
||||
return getSarStandProjectLibraryIPage(current, pageSize, sar,flag);
|
||||
}
|
||||
@Override
|
||||
public IPage<SarStandProjectLibrary> queryNotMaintenanceProject(int current, int pageSize,
|
||||
SarStandProjectLibraryDto sarDto) {
|
||||
@@ -240,6 +270,7 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
|
||||
@Override
|
||||
public void batchInsert(List<StandProjectRelationDto> list) {
|
||||
sarStandProjectLibraryDao.deleteByProjectId(list.get(0).getProjectId());
|
||||
sarStandProjectLibraryDao.batchInsert(list);
|
||||
}
|
||||
|
||||
@@ -323,7 +354,8 @@ public class SarStandProjectLibraryServiceImpl extends ServiceImpl<SarStandProje
|
||||
userIPage.setRecords(sarStandProjectLibraries);
|
||||
userIPage.setTotal(count);
|
||||
return userIPage;
|
||||
}else {
|
||||
}
|
||||
else {
|
||||
flag=2;
|
||||
List<SarStandProjectLibrary> sarStandProjectLibraries = sarStandProjectLibraryDao.selectPagesWorkFlow(current, pageSize, wrapper, flag);
|
||||
Integer count = sarStandProjectLibraryDao.selectCountWorkFlow(wrapper, flag);
|
||||
|
||||
+14
-4
@@ -27,6 +27,11 @@
|
||||
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByProjectId">
|
||||
delete from sar_stand_project_relation where
|
||||
project_id= #{projectId}
|
||||
</delete>
|
||||
|
||||
<select id="selectCount" resultType="java.lang.Integer">
|
||||
SELECT
|
||||
count(sar_stand_project_library.id ) as total
|
||||
@@ -34,13 +39,16 @@
|
||||
sar_stand_project_library
|
||||
LEFT JOIN ts_user tu ON project_manager = tu.USID
|
||||
WHERE
|
||||
(
|
||||
|
||||
<if test="flag == 1">
|
||||
id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="flag == 2">
|
||||
id IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="flag == 4">
|
||||
1=1
|
||||
</if>
|
||||
<if test="qu != null">
|
||||
<if test="qu.projectNumber != null">
|
||||
AND project_number LIKE concat(concat('%',#{qu.projectNumber}),'%')
|
||||
@@ -79,7 +87,7 @@
|
||||
AND project_end_date <= #{qu.projectEndDate}
|
||||
</if>
|
||||
</if>
|
||||
)
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectPages" resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
|
||||
@@ -90,13 +98,15 @@
|
||||
sar_stand_project_library
|
||||
LEFT JOIN ts_user tu ON project_manager = tu.USID
|
||||
WHERE
|
||||
(
|
||||
<if test="flag == 1">
|
||||
id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="flag == 2">
|
||||
id IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="flag == 4">
|
||||
1=1
|
||||
</if>
|
||||
<if test="qu != null">
|
||||
<if test="qu.projectNumber != null">
|
||||
AND project_number LIKE concat(concat('%',#{qu.projectNumber}),'%')
|
||||
@@ -135,7 +145,7 @@
|
||||
AND project_end_date <= #{qu.projectEndDate}
|
||||
</if>
|
||||
</if>
|
||||
)
|
||||
|
||||
limit ${(page-1)*size},${page*size}
|
||||
</select>
|
||||
<select id="selectPagesWorkFlow"
|
||||
|
||||
Reference in New Issue
Block a user