forked from integrated_whb/integrated_whb
动火作业
parent
3507bf61a9
commit
13e1b7442e
|
@ -8,6 +8,7 @@ import com.zcloud.dto.TenCorpDto;
|
||||||
import com.zcloud.entity.Page;
|
import com.zcloud.entity.Page;
|
||||||
import com.zcloud.entity.PageData;
|
import com.zcloud.entity.PageData;
|
||||||
import com.zcloud.logs.LogAnno;
|
import com.zcloud.logs.LogAnno;
|
||||||
|
import com.zcloud.service.eightwork.HotworkGasService;
|
||||||
import com.zcloud.service.eightwork.HotworkService;
|
import com.zcloud.service.eightwork.HotworkService;
|
||||||
import com.zcloud.service.mq.SendMessageService;
|
import com.zcloud.service.mq.SendMessageService;
|
||||||
import com.zcloud.util.DateUtil;
|
import com.zcloud.util.DateUtil;
|
||||||
|
@ -33,7 +34,8 @@ public class AppHotworkController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private HotworkService hotworkService;
|
private HotworkService hotworkService;
|
||||||
|
@Autowired
|
||||||
|
private HotworkGasService hotworkGasService;
|
||||||
/**
|
/**
|
||||||
* 新增
|
* 新增
|
||||||
* @param
|
* @param
|
||||||
|
@ -41,9 +43,7 @@ public class AppHotworkController extends BaseController {
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/add")
|
@RequestMapping(value = "/add")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@Transactional
|
|
||||||
@LogAnno(menuType = "手机", menuServer = "动火作业", instructionsOperate = "动火作业", instructionsType = "新增")
|
@LogAnno(menuType = "手机", menuServer = "动火作业", instructionsOperate = "动火作业", instructionsType = "新增")
|
||||||
@SuppressWarnings("all")
|
|
||||||
public Object add() throws Exception {
|
public Object add() throws Exception {
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
|
@ -54,6 +54,23 @@ public class AppHotworkController extends BaseController {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
* @param
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@RequestMapping(value = "/edit")
|
||||||
|
@ResponseBody
|
||||||
|
@LogAnno(menuType = "手机", menuServer = "动火作业", instructionsOperate = "动火作业", instructionsType = "新增")
|
||||||
|
public Object edit() throws Exception {
|
||||||
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
|
String errInfo = "success";
|
||||||
|
PageData pd = new PageData();
|
||||||
|
pd = this.getPageData();
|
||||||
|
hotworkService.edit(pd);
|
||||||
|
map.put("result", errInfo);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 删除
|
* 删除
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
|
@ -103,7 +120,7 @@ public class AppHotworkController extends BaseController {
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
pd = hotworkService.findById(pd);
|
pd = hotworkService.findById(pd);
|
||||||
map.put("result",errInfo);
|
map.put("result",errInfo);
|
||||||
map.put("page",pd);
|
map.put("pd",pd);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -123,12 +140,12 @@ public class AppHotworkController extends BaseController {
|
||||||
@RequestMapping("/nextStep")
|
@RequestMapping("/nextStep")
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
@LogAnno(menuType= "手机",menuServer= "动火作业",instructionsOperate = "动火作业",instructionsType = "通过")
|
@LogAnno(menuType= "手机",menuServer= "动火作业",instructionsOperate = "动火作业",instructionsType = "通过")
|
||||||
public Object nextStep(@RequestParam(value="file",required=false) MultipartFile file) throws Exception {
|
public Object nextStep(@RequestParam(value="files",required=false) MultipartFile[] files) throws Exception {
|
||||||
Map<String,Object> map = new HashMap<>();
|
Map<String,Object> map = new HashMap<>();
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
hotworkService.nextStep(pd, file);
|
hotworkService.nextStep(pd, files);
|
||||||
map.put("result",errInfo);
|
map.put("result",errInfo);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
@ -197,4 +214,56 @@ public class AppHotworkController extends BaseController {
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**去修改页面获取数据
|
||||||
|
* @param
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/gas/save")
|
||||||
|
@ResponseBody
|
||||||
|
@LogAnno(menuType= "手机",menuServer= "动火作业",instructionsOperate = "动火作业",instructionsType = "保存气体检测")
|
||||||
|
public Object gasSave(@RequestParam(value="file",required=false) MultipartFile file) throws Exception{
|
||||||
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
|
String errInfo = "success";
|
||||||
|
PageData pd = new PageData();
|
||||||
|
pd = this.getPageData();
|
||||||
|
hotworkService.saveGas(pd,file);
|
||||||
|
map.put("result", errInfo);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**去修改页面获取数据
|
||||||
|
* @param
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/gas/list")
|
||||||
|
@ResponseBody
|
||||||
|
@LogAnno(menuType= "手机",menuServer= "动火作业",instructionsOperate = "动火作业",instructionsType = "去修改页面获取数据")
|
||||||
|
public Object gasList() throws Exception{
|
||||||
|
Map<String,Object> map = new HashMap<String,Object>();
|
||||||
|
String errInfo = "success";
|
||||||
|
PageData pd = new PageData();
|
||||||
|
pd = this.getPageData();
|
||||||
|
List<PageData> varList = hotworkGasService.listAll(pd); //列出hotwork列表
|
||||||
|
map.put("varList", varList);
|
||||||
|
map.put("result", errInfo);
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**去修改页面获取数据
|
||||||
|
* @param
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
@RequestMapping(value="/gas/delete")
|
||||||
|
@ResponseBody
|
||||||
|
@LogAnno(menuType= "手机",menuServer= "动火作业",instructionsOperate = "动火作业",instructionsType = "去修改页面获取数据")
|
||||||
|
public Object gasDel() throws Exception{
|
||||||
|
Map<String,String> map = new HashMap<String,String>();
|
||||||
|
String errInfo = "success";
|
||||||
|
PageData pd = new PageData();
|
||||||
|
pd = this.getPageData();
|
||||||
|
hotworkGasService.delete(pd);
|
||||||
|
map.put("result", errInfo); //返回结果
|
||||||
|
return map;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ public interface HotworkMapper {
|
||||||
void save(PageData pd);
|
void save(PageData pd);
|
||||||
void delete(PageData pd);
|
void delete(PageData pd);
|
||||||
void edit(PageData pd);
|
void edit(PageData pd);
|
||||||
|
void editGasTime(PageData pd);
|
||||||
void editStep(PageData pd);
|
void editStep(PageData pd);
|
||||||
List<PageData> datalistPage(Page page);
|
List<PageData> datalistPage(Page page);
|
||||||
void cancel(PageData pd);
|
void cancel(PageData pd);
|
||||||
|
|
|
@ -14,11 +14,13 @@ import net.sf.ehcache.constructs.nonstop.store.ExceptionOnTimeoutStore;
|
||||||
public interface HotworkService {
|
public interface HotworkService {
|
||||||
void save(PageData pd)throws Exception;
|
void save(PageData pd)throws Exception;
|
||||||
|
|
||||||
|
void edit(PageData pd)throws Exception;
|
||||||
|
|
||||||
void delete(PageData pd)throws Exception;
|
void delete(PageData pd)throws Exception;
|
||||||
|
|
||||||
List<PageData> list(Page page) throws Exception;
|
List<PageData> list(Page page) throws Exception;
|
||||||
|
|
||||||
void nextStep(PageData pd, MultipartFile file) throws Exception;
|
void nextStep(PageData pd, MultipartFile[] files) throws Exception;
|
||||||
|
|
||||||
void accept(PageData pd)throws Exception;
|
void accept(PageData pd)throws Exception;
|
||||||
|
|
||||||
|
@ -36,4 +38,7 @@ public interface HotworkService {
|
||||||
//
|
//
|
||||||
// //获取所有签字完成的措施(bus_hotworktomeasures)
|
// //获取所有签字完成的措施(bus_hotworktomeasures)
|
||||||
List<PageData> listSignFinishMeasures(PageData pd) throws Exception;
|
List<PageData> listSignFinishMeasures(PageData pd) throws Exception;
|
||||||
|
|
||||||
|
void saveGas(PageData pd,MultipartFile file) throws Exception;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,6 +41,8 @@ public class HotworkServiceImpl implements HotworkService {
|
||||||
@Autowired
|
@Autowired
|
||||||
private HotworkToMeasuresMapper hotworkToMeasuresMapper;
|
private HotworkToMeasuresMapper hotworkToMeasuresMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
|
private HotworkGasMapper hotworkGasMapper;
|
||||||
|
@Autowired
|
||||||
private Smb smb;
|
private Smb smb;
|
||||||
|
|
||||||
private final static String primary_key = "HOTWORK_ID";
|
private final static String primary_key = "HOTWORK_ID";
|
||||||
|
@ -72,6 +74,21 @@ public class HotworkServiceImpl implements HotworkService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void edit(PageData pd) throws Exception {
|
||||||
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
|
hotworkMapper.edit(pd);
|
||||||
|
|
||||||
|
if (pd.get("APPLY_STATUS").equals("1")) {
|
||||||
|
pd.put("STEP_ID", 1);
|
||||||
|
hotworkMapper.editStep(pd);
|
||||||
|
PageData flow = getStep(pd.get("TASK_ID"),"1");
|
||||||
|
saveLog(pd,pd.getString("CREATOR"),"1");
|
||||||
|
saveNextSigner(pd,flow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void delete(PageData pd) throws Exception {
|
public void delete(PageData pd) throws Exception {
|
||||||
hotworkMapper.delete(pd);
|
hotworkMapper.delete(pd);
|
||||||
|
@ -87,20 +104,25 @@ public class HotworkServiceImpl implements HotworkService {
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public void nextStep(PageData pd, MultipartFile file) throws Exception {
|
public void nextStep(PageData pd, MultipartFile[] files) throws Exception {
|
||||||
//保存签名文件
|
List<String> filePaths = new ArrayList<>();
|
||||||
String ffile = DateUtil.getDays();
|
for (int i = 0; i < files.length; i++) {
|
||||||
String fileName = UuidUtil.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
//保存签名文件
|
||||||
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
String ffile = DateUtil.getDays();
|
||||||
String filePath = Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName;
|
String fileName = UuidUtil.get32UUID() + files[i].getOriginalFilename().substring(files[i].getOriginalFilename().lastIndexOf("."));
|
||||||
|
smb.sshSftp(files[i], fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
|
filePaths.add(Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
|
}
|
||||||
|
PageData flow = getStep(pd.get("TASK_ID"), pd.get("STEP_ID"));
|
||||||
|
pd.put("STEP_ID", flow.get("NEXT_STEP_ID"));
|
||||||
|
|
||||||
//保存签名信息
|
//保存签名信息
|
||||||
PageData sign = new PageData();
|
PageData sign = new PageData();
|
||||||
sign.put(primary_key, pd.get(primary_key));
|
sign.put(primary_key, pd.get(primary_key));
|
||||||
sign.put("STEP_ID", pd.get("STEP_ID"));
|
sign.put("STEP_ID", pd.get("STEP_ID"));
|
||||||
sign.put("SIGN_USER_ID", pd.get("SIGN_USER_ID"));
|
sign.put("SIGN_USER_ID", pd.get("USER_ID"));
|
||||||
sign.put("SIGN_TIME", DateUtil.date2Str(new Date()));
|
sign.put("SIGN_TIME", DateUtil.date2Str(new Date()));
|
||||||
sign.put("SIGN_PATH", filePath);
|
sign.put("SIGN_PATH", String.join(",",filePaths));
|
||||||
sign.put("DESCR", pd.get("DESCR"));
|
sign.put("DESCR", pd.get("DESCR"));
|
||||||
|
|
||||||
hotworkSignMapper.edit(sign);
|
hotworkSignMapper.edit(sign);
|
||||||
|
@ -111,17 +133,119 @@ public class HotworkServiceImpl implements HotworkService {
|
||||||
|
|
||||||
List<PageData> unsignedList = hotworkSignMapper.checkUnsigned(sign);//当前步骤未签名人列表
|
List<PageData> unsignedList = hotworkSignMapper.checkUnsigned(sign);//当前步骤未签名人列表
|
||||||
if(unsignedList == null || unsignedList.size() == 0){//如果没有未签人 则跳转下一步
|
if(unsignedList == null || unsignedList.size() == 0){//如果没有未签人 则跳转下一步
|
||||||
PageData flow = getStep(pd.get("TASK_ID"), pd.get("STEP_ID"));
|
|
||||||
hotworkMapper.edit(pd);
|
hotworkMapper.edit(pd);
|
||||||
|
|
||||||
if (pd.get("PREPARERS") != null && !pd.get("PREPARERS").equals("")) { //如果是设置安全措施确认人步骤
|
if (pd.get("PREPARERS") != null && !pd.get("PREPARERS").equals("")) { //如果是设置安全措施确认人步骤
|
||||||
savePreparers(pd,flow);
|
savePreparers(pd,flow);
|
||||||
}
|
}
|
||||||
|
|
||||||
saveNextSigner(pd,flow);
|
|
||||||
|
|
||||||
//保存日志
|
//保存日志
|
||||||
saveLog(pd,pd.getString(flow.get("ACTOR_FIELD")),"1");
|
saveLog(pd,pd.getString(flow.get("ACTOR_FIELD")),"1");
|
||||||
|
|
||||||
|
saveNextSigner(pd,flow);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 验收归档
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public void accept(PageData pd)throws Exception{
|
||||||
|
PageData flow = getStep(pd.get("TASK_ID"), 99);
|
||||||
|
hotworkMapper.edit(pd);
|
||||||
|
saveLog(pd,pd.getString(flow.get("ACTOR_FIELD")),"1");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 取消
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void cancel(PageData pd)throws Exception{
|
||||||
|
PageData flow = getStep(pd.get("TASK_ID"), pd.get("STEP_ID"));
|
||||||
|
saveLog(pd,pd.getString(flow.get("ACTOR_FIELD")),"-1");
|
||||||
|
pd.put("STEP_ID", -1);
|
||||||
|
hotworkMapper.editStep(pd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageData findById(PageData pd) throws Exception {
|
||||||
|
PageData pageData = hotworkMapper.findById(pd);
|
||||||
|
return pageData;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageData checkWorkCount(PageData pd) {
|
||||||
|
PageData rpd = new PageData();
|
||||||
|
List<PageData> varList = hotworkMapper.checkWorkCount(pd);
|
||||||
|
|
||||||
|
if (varList != null && !varList.isEmpty()) {
|
||||||
|
Map<String, String> newMap = varList.stream()
|
||||||
|
.collect(Collectors.toMap(map -> map.getString("CODE"), map -> map.getString("COUNT")));
|
||||||
|
|
||||||
|
rpd.putAll(newMap);
|
||||||
|
}
|
||||||
|
return rpd;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PageData> listAllMeasures() throws Exception {
|
||||||
|
return hotworkMapper.listAllMeasures();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PageData> listAllMeasuresForSign(PageData pd) throws Exception {
|
||||||
|
return hotworkToMeasuresMapper.listAllMeasuresForSign(pd);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<PageData> listSignFinishMeasures(PageData pd) throws Exception {
|
||||||
|
return hotworkToMeasuresMapper.listSignFinishMeasures(pd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
@Transactional
|
||||||
|
public void saveGas(PageData pd,MultipartFile file) throws Exception {
|
||||||
|
PageData work = hotworkMapper.findById(pd);
|
||||||
|
String ffile = DateUtil.getDays();
|
||||||
|
String fileName = UuidUtil.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
|
||||||
|
smb.sshSftp(file, fileName, Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile);
|
||||||
|
String filePath = Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName;
|
||||||
|
pd.put("HOTWORKGAS_ID", UuidUtil.get32UUID()); //主键
|
||||||
|
pd.put("ISDELETE", "0"); //是否删除 1-是 0-否
|
||||||
|
pd.put("SIGN_PATH", filePath);
|
||||||
|
hotworkGasMapper.save(pd);
|
||||||
|
hotworkMapper.editGasTime(pd);//修改最后一次气体检测时间
|
||||||
|
|
||||||
|
PageData flow = getStep(work.get("TASK_ID"), work.get("STEP_ID"));
|
||||||
|
if (pd.get("APPLY_STATUS").equals("1")) { //如果通过
|
||||||
|
if(flow.get("NEXT_STEP_ID") != null && flow.getString("NEXT_STEP_ID").equals("2")){//如果为气体检测步骤,则保存日志并跳转下一步
|
||||||
|
PageData sign = new PageData();
|
||||||
|
sign.put(primary_key, work.get(primary_key));
|
||||||
|
sign.put("STEP_ID", 2);
|
||||||
|
sign.put("SIGN_USER_ID", pd.get("USER_ID"));
|
||||||
|
sign.put("SIGN_TIME", DateUtil.date2Str(new Date()));
|
||||||
|
sign.put("SIGN_PATH", filePath);
|
||||||
|
sign.put("DESCR", pd.get("DESCR"));
|
||||||
|
hotworkSignMapper.edit(sign);
|
||||||
|
|
||||||
|
work.put("STEP_ID", flow.get("NEXT_STEP_ID"));
|
||||||
|
hotworkMapper.editStep(work);
|
||||||
|
|
||||||
|
//保存日志
|
||||||
|
saveLog(work,work.getString(flow.get("ACTOR_FIELD")),"1");
|
||||||
|
|
||||||
|
//预存下一步
|
||||||
|
PageData currentflow = getStep(work.get("TASK_ID"), work.get("STEP_ID"));
|
||||||
|
saveNextSigner(work,currentflow);
|
||||||
|
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
saveLog(work,pd.getString("USER_ID"),"-2");
|
||||||
|
work.put("STEP_ID", -1);
|
||||||
|
hotworkMapper.editStep(work);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,65 +326,6 @@ public class HotworkServiceImpl implements HotworkService {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 验收归档
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public void accept(PageData pd)throws Exception{
|
|
||||||
PageData flow = getStep(pd.get("TASK_ID"), 99);
|
|
||||||
hotworkMapper.edit(pd);
|
|
||||||
saveLog(pd,pd.getString(flow.get("ACTOR_FIELD")),"1");
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 取消
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
@Transactional
|
|
||||||
public void cancel(PageData pd)throws Exception{
|
|
||||||
PageData flow = getStep(pd.get("TASK_ID"), pd.get("STEP_ID"));
|
|
||||||
saveLog(pd,pd.getString(flow.get("ACTOR_FIELD")),"-1");
|
|
||||||
pd.put("STEP_ID", -1);
|
|
||||||
hotworkMapper.edit(pd);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public PageData findById(PageData pd) throws Exception {
|
|
||||||
PageData pageData = hotworkMapper.findById(pd);
|
|
||||||
return pageData;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public PageData checkWorkCount(PageData pd) {
|
|
||||||
PageData rpd = new PageData();
|
|
||||||
List<PageData> varList = hotworkMapper.checkWorkCount(pd);
|
|
||||||
|
|
||||||
if (varList != null && !varList.isEmpty()) {
|
|
||||||
Map<String, String> newMap = varList.stream()
|
|
||||||
.collect(Collectors.toMap(map -> map.getString("CODE"), map -> map.getString("COUNT")));
|
|
||||||
|
|
||||||
rpd.putAll(newMap);
|
|
||||||
}
|
|
||||||
return rpd;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<PageData> listAllMeasures() throws Exception {
|
|
||||||
return hotworkMapper.listAllMeasures();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<PageData> listAllMeasuresForSign(PageData pd) throws Exception {
|
|
||||||
return hotworkToMeasuresMapper.listAllMeasuresForSign(pd);
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<PageData> listSignFinishMeasures(PageData pd) throws Exception {
|
|
||||||
return hotworkToMeasuresMapper.listSignFinishMeasures(pd);
|
|
||||||
}
|
|
||||||
|
|
||||||
private PageData getStep(Object TASK_ID, Object STEP_ID) throws Exception {
|
private PageData getStep(Object TASK_ID, Object STEP_ID) throws Exception {
|
||||||
PageData flow = new PageData();
|
PageData flow = new PageData();
|
||||||
flow.put("TASK_ID", TASK_ID);
|
flow.put("TASK_ID", TASK_ID);
|
||||||
|
|
|
@ -237,20 +237,18 @@
|
||||||
HOTWORK_ID = #{HOTWORK_ID}
|
HOTWORK_ID = #{HOTWORK_ID}
|
||||||
</update>
|
</update>
|
||||||
|
|
||||||
|
<update id="editGasTime" parameterType="pd">
|
||||||
|
update
|
||||||
|
<include refid="tableName"></include>
|
||||||
|
set
|
||||||
|
ANALYZE_TIME = #{ANALYZE_TIME}
|
||||||
|
where
|
||||||
|
HOTWORK_ID = #{HOTWORK_ID}
|
||||||
|
</update>
|
||||||
|
|
||||||
<select id="findById" parameterType="pd" resultType="pd">
|
<select id="findById" parameterType="pd" resultType="pd">
|
||||||
SELECT
|
SELECT
|
||||||
f.HOTWORK_ID,
|
<include refid="Field"></include>,
|
||||||
f.CORPINFO_ID,
|
|
||||||
f.TASK_ID,
|
|
||||||
f.STEP_ID,
|
|
||||||
f.ISDELETE,
|
|
||||||
f.CREATTIME,
|
|
||||||
f.CREATOR,
|
|
||||||
f.OPERATTIME,
|
|
||||||
f.OPERATOR,
|
|
||||||
f.CHECK_NO,
|
|
||||||
f.WORK_CONTENT,
|
|
||||||
f.WORK_PLACE,
|
|
||||||
appo.`NAME` as APPLY_DEPARTMENT_NAME,
|
appo.`NAME` as APPLY_DEPARTMENT_NAME,
|
||||||
appu.`NAME` as APPLY_USER_NAME,
|
appu.`NAME` as APPLY_USER_NAME,
|
||||||
f.WORK_LEVEL,
|
f.WORK_LEVEL,
|
||||||
|
@ -333,7 +331,7 @@
|
||||||
update
|
update
|
||||||
<include refid="tableName"></include>
|
<include refid="tableName"></include>
|
||||||
set
|
set
|
||||||
STEP_ID = #{pd.STEP_ID}
|
STEP_ID = #{STEP_ID}
|
||||||
where
|
where
|
||||||
HOTWORK_ID = #{HOTWORK_ID}
|
HOTWORK_ID = #{HOTWORK_ID}
|
||||||
</update>
|
</update>
|
||||||
|
@ -412,7 +410,8 @@
|
||||||
left join oa_department as endo on f.WORK_END_DEPARTMENT_ID = endo.DEPARTMENT_ID
|
left join oa_department as endo on f.WORK_END_DEPARTMENT_ID = endo.DEPARTMENT_ID
|
||||||
left join sys_user as endu on f.WORK_END_USER_ID = endu.USER_ID
|
left join sys_user as endu on f.WORK_END_USER_ID = endu.USER_ID
|
||||||
|
|
||||||
left join (select log.* from vi_eightwork_flow_log log order by log.ACT_TIME desc limit 1) log on log.WORK_ID = f.HOTWORK_ID
|
left join (select * from(select * from vi_eightwork_flow_log log having 1 order by log.ACT_TIME desc
|
||||||
|
) tmp group by tmp.WORK_ID) log on log.WORK_ID = f.HOTWORK_ID
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
<if test="pd.STEP_NAME != null and pd.STEP_NAME != ''"><!-- 关键词检索 -->
|
<if test="pd.STEP_NAME != null and pd.STEP_NAME != ''"><!-- 关键词检索 -->
|
||||||
and exists (
|
and exists (
|
||||||
|
@ -428,7 +427,7 @@
|
||||||
and f.CREATOR = #{pd.CREATOR}
|
and f.CREATOR = #{pd.CREATOR}
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.GASCHECK != null and pd.GASCHECK != ''"><!-- 关键词检索 -->
|
<if test="pd.GASCHECK != null and pd.GASCHECK != ''"><!-- 关键词检索 -->
|
||||||
and f.
|
and f.STEP_ID > 0 and f.STEP_ID != 100 and f.ANALYZE_USER_ID = #{pd.GASCHECK}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
f.ANALYZE_USER,
|
f.ANALYZE_USER,
|
||||||
f.ISDELETE,
|
f.ISDELETE,
|
||||||
f.HOTWORKGAS_ID,
|
f.HOTWORKGAS_ID,
|
||||||
f.ANALYZE_PATH
|
f.SIGN_PATH
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 字段用于新增 -->
|
<!-- 字段用于新增 -->
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
ANALYZE_USER,
|
ANALYZE_USER,
|
||||||
ISDELETE,
|
ISDELETE,
|
||||||
HOTWORKGAS_ID,
|
HOTWORKGAS_ID,
|
||||||
ANALYZE_PATH
|
SIGN_PATH
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 字段值 -->
|
<!-- 字段值 -->
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
#{ANALYZE_USER},
|
#{ANALYZE_USER},
|
||||||
#{ISDELETE},
|
#{ISDELETE},
|
||||||
#{HOTWORKGAS_ID},
|
#{HOTWORKGAS_ID},
|
||||||
#{ANALYZE_PATH}
|
#{SIGN_PATH}
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 新增-->
|
<!-- 新增-->
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
ANALYZE_USER = #{ANALYZE_USER},
|
ANALYZE_USER = #{ANALYZE_USER},
|
||||||
ISDELETE = #{ISDELETE},
|
ISDELETE = #{ISDELETE},
|
||||||
HOTWORKGAS_ID = HOTWORKGAS_ID,
|
HOTWORKGAS_ID = HOTWORKGAS_ID,
|
||||||
ANALYZE_PATH = #{ANALYZE_PATH}
|
SIGN_PATH = #{SIGN_PATH}
|
||||||
where
|
where
|
||||||
HOTWORKGAS_ID = #{HOTWORKGAS_ID}
|
HOTWORKGAS_ID = #{HOTWORKGAS_ID}
|
||||||
</update>
|
</update>
|
||||||
|
@ -103,15 +103,8 @@
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
<include refid="tableName"></include> f
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
<if test="pd.HOTWORK_ID != null and pd.HOTWORK_ID != ''"><!-- 关键词检索 -->
|
||||||
<!-- and-->
|
and f.HOTWORK_ID = #{pd.HOTWORK_ID}
|
||||||
<!-- (-->
|
|
||||||
<!-- <!– 根据需求自己加检索条件-->
|
|
||||||
<!-- 字段1 LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')-->
|
|
||||||
<!-- or-->
|
|
||||||
<!-- 字段2 LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')-->
|
|
||||||
<!-- –>-->
|
|
||||||
<!-- )-->
|
|
||||||
</if>
|
</if>
|
||||||
ORDER BY f.ANALYZE_TIME desc
|
ORDER BY f.ANALYZE_TIME desc
|
||||||
</select>
|
</select>
|
||||||
|
|
|
@ -85,7 +85,7 @@
|
||||||
set
|
set
|
||||||
DESCR = #{DESCR},
|
DESCR = #{DESCR},
|
||||||
SIGN_PATH = #{SIGN_PATH},
|
SIGN_PATH = #{SIGN_PATH},
|
||||||
SIGN_TIME= #{SIGN_TIME},
|
SIGN_TIME= #{SIGN_TIME}
|
||||||
where
|
where
|
||||||
HOTWORK_ID = #{HOTWORK_ID} and SIGN_USER_ID = #{SIGN_USER_ID} and STEP_ID = #{STEP_ID}
|
HOTWORK_ID = #{HOTWORK_ID} and SIGN_USER_ID = #{SIGN_USER_ID} and STEP_ID = #{STEP_ID}
|
||||||
</update>
|
</update>
|
||||||
|
|
Loading…
Reference in New Issue