Merge branch 'pet' into dev
commit
f87f3fdee0
|
@ -895,7 +895,8 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
|
|
||||||
pd2.put("CONFIRM_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
pd2.put("CONFIRM_USER_SIGNER_PATH", Const.FILEPATHFILE + pd.getString("CORPINFO_ID") + "/" + ffile + "/" + fileName);
|
||||||
pd2.put("CONFIRM_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
pd2.put("CONFIRM_USER_SIGNER_TIME", pd.get("SIGNER_TIME"));
|
||||||
pd2.put("CONFIRM_CONTENT", pd.get("APPROVAL_CONTENT"));
|
pd2.put("CONFIRM_CONTENT", pd.get("CONTENT"));
|
||||||
|
pd2.put("CONFIRM_OTHER_CONTENT", pd.get("APPROVAL_CONTENT"));
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
hotworkCfdService.edit(pd2);
|
hotworkCfdService.edit(pd2);
|
||||||
log.put("ACTION", "作业单位通过");
|
log.put("ACTION", "作业单位通过");
|
||||||
|
@ -1096,6 +1097,14 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
|
|
||||||
case "7"://班长
|
case "7"://班长
|
||||||
if (files != null && files.length > 0) {
|
if (files != null && files.length > 0) {
|
||||||
|
PageData condition = new PageData();
|
||||||
|
condition.put("HOTWORK_ID",pd2.getString("HOTWORK_ID"));
|
||||||
|
List<PageData> acceptUsers = hotworkAcceptUserCfdService.listAll(condition);
|
||||||
|
if (acceptUsers.size() <= 0){
|
||||||
|
map.put("code","9999");
|
||||||
|
map.put("errorMessage","接受交底人未签字");
|
||||||
|
return map;
|
||||||
|
}
|
||||||
MultipartFile file = files[0];
|
MultipartFile file = files[0];
|
||||||
|
|
||||||
String ffile = DateUtil.getDays();
|
String ffile = DateUtil.getDays();
|
||||||
|
@ -1198,6 +1207,13 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
//sendMessageUtil.sendMessages(mes, paramsList);
|
//sendMessageUtil.sendMessages(mes, paramsList);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case "-1.5": {//确认
|
||||||
|
log.put("ACTION", "作业负责人打回");
|
||||||
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
pd2.put("AUDIT_CONTENT", pd.get("CONTENT"));
|
||||||
|
hotworkCfdService.edit(pd2);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case "-2": {//确认打回
|
case "-2": {//确认打回
|
||||||
log.put("ACTION", "作业单位打回");
|
log.put("ACTION", "作业单位打回");
|
||||||
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
pd2.put("APPLY_STATUS", pd.get("APPLY_STATUS"));
|
||||||
|
@ -1847,6 +1863,7 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
condition.put("CORPINFO_ID",request.get("CORPINFO_ID"));
|
condition.put("CORPINFO_ID",request.get("CORPINFO_ID"));
|
||||||
condition.put("TYPE","2");
|
condition.put("TYPE","2");
|
||||||
condition.put("APPROVAL_STATUS","1");
|
condition.put("APPROVAL_STATUS","1");
|
||||||
|
condition.put("APPROVAL_CONTENT", request.getString("APPROVAL_CONTENT"));
|
||||||
hotworkCfdService.confessApproval(condition, files);
|
hotworkCfdService.confessApproval(condition, files);
|
||||||
|
|
||||||
// 保存安全项信息
|
// 保存安全项信息
|
||||||
|
@ -1868,6 +1885,8 @@ public class AppHotworkCfdController extends BaseController {
|
||||||
measures.put("CONFIRM_NAME", request.get("ACTION_USER"));
|
measures.put("CONFIRM_NAME", request.get("ACTION_USER"));
|
||||||
hotworkToMeasuresCfdService.save(measures);
|
hotworkToMeasuresCfdService.save(measures);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 保存其他审批意见
|
||||||
response.put("result", "success");
|
response.put("result", "success");
|
||||||
return response;
|
return response;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -26,5 +26,7 @@ public interface BusHotworkCfdExamineMapper {
|
||||||
List<PageData> findByCondition(PageData condition);
|
List<PageData> findByCondition(PageData condition);
|
||||||
|
|
||||||
List<PageData> safetylistPage(Page page);
|
List<PageData> safetylistPage(Page page);
|
||||||
|
|
||||||
|
List<PageData> listAllByHotWorkId(PageData condition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -232,6 +232,7 @@ public class HotworkCfdServiceImpl implements HotworkCfdService {
|
||||||
entity.put("APPROVAL_STATUS", request.getString("APPROVAL_STATUS"));
|
entity.put("APPROVAL_STATUS", request.getString("APPROVAL_STATUS"));
|
||||||
entity.put("APPROVAL_SIGNATURE", Warden.saveFile(files,request.getString("CORPINFO_ID")));
|
entity.put("APPROVAL_SIGNATURE", Warden.saveFile(files,request.getString("CORPINFO_ID")));
|
||||||
entity.put("APPROVAL_SIGNATURE_TIME", DateUtil.getTime());
|
entity.put("APPROVAL_SIGNATURE_TIME", DateUtil.getTime());
|
||||||
|
entity.put("APPROVAL_CONTENT",request.getString("APPROVAL_CONTENT"));
|
||||||
busHotworkCfdExamineMapper.edit(entity);
|
busHotworkCfdExamineMapper.edit(entity);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -284,7 +285,8 @@ public class HotworkCfdServiceImpl implements HotworkCfdService {
|
||||||
hotworkCfdMapper.delete(pd);
|
hotworkCfdMapper.delete(pd);
|
||||||
PageData condition = new PageData();
|
PageData condition = new PageData();
|
||||||
condition.put("HOTWORK_ID", pd.getString("HOTWORK_ID"));
|
condition.put("HOTWORK_ID", pd.getString("HOTWORK_ID"));
|
||||||
List<PageData> oldEntity = busHotworkCfdExamineMapper.listAll(condition);
|
// List<PageData> oldEntity = busHotworkCfdExamineMapper.listAll(condition);
|
||||||
|
List<PageData> oldEntity = busHotworkCfdExamineMapper.listAllByHotWorkId(condition);
|
||||||
for (PageData entity : oldEntity) {
|
for (PageData entity : oldEntity) {
|
||||||
entity.put("IS_DELETE", "1");
|
entity.put("IS_DELETE", "1");
|
||||||
busHotworkCfdExamineMapper.edit(entity);
|
busHotworkCfdExamineMapper.edit(entity);
|
||||||
|
|
|
@ -308,5 +308,9 @@
|
||||||
ORDER BY f.APPLY_STATUS,f.CREATTIME DESC
|
ORDER BY f.APPLY_STATUS,f.CREATTIME DESC
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="listAllByHotWorkId" resultType="com.zcloud.entity.PageData">
|
||||||
|
select * from bus_hotwork_cfd_examine f where f.HOTWORK_ID = #{HOTWORK_ID}
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,8 @@
|
||||||
f.ACCEPT_CONFESS_USER_ID,
|
f.ACCEPT_CONFESS_USER_ID,
|
||||||
f.ACCEPT_CONFESS_USER_SIGNER_PATH,
|
f.ACCEPT_CONFESS_USER_SIGNER_PATH,
|
||||||
f.ACCEPT_CONFESS_USER_SIGNER_TIME,
|
f.ACCEPT_CONFESS_USER_SIGNER_TIME,
|
||||||
f.ANALYZE_TIME
|
f.ANALYZE_TIME,
|
||||||
|
f.CONFIRM_OTHER_CONTENT
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 字段用于新增 -->
|
<!-- 字段用于新增 -->
|
||||||
|
@ -167,7 +168,8 @@
|
||||||
ACCEPT_CONFESS_USER_ID,
|
ACCEPT_CONFESS_USER_ID,
|
||||||
ACCEPT_CONFESS_USER_SIGNER_PATH,
|
ACCEPT_CONFESS_USER_SIGNER_PATH,
|
||||||
ACCEPT_CONFESS_USER_SIGNER_TIME,
|
ACCEPT_CONFESS_USER_SIGNER_TIME,
|
||||||
ANALYZE_TIME
|
ANALYZE_TIME,
|
||||||
|
CONFIRM_OTHER_CONTENT
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 字段值 -->
|
<!-- 字段值 -->
|
||||||
|
@ -246,7 +248,8 @@
|
||||||
#{ACCEPT_CONFESS_USER_ID},
|
#{ACCEPT_CONFESS_USER_ID},
|
||||||
#{ACCEPT_CONFESS_USER_SIGNER_PATH},
|
#{ACCEPT_CONFESS_USER_SIGNER_PATH},
|
||||||
#{ACCEPT_CONFESS_USER_SIGNER_TIME},
|
#{ACCEPT_CONFESS_USER_SIGNER_TIME},
|
||||||
#{ANALYZE_TIME}
|
#{ANALYZE_TIME},
|
||||||
|
#{CONFIRM_OTHER_CONTENT}
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<!-- 新增-->
|
<!-- 新增-->
|
||||||
|
@ -355,6 +358,7 @@
|
||||||
ACCEPT_CONFESS_USER_ID = #{ACCEPT_CONFESS_USER_ID},
|
ACCEPT_CONFESS_USER_ID = #{ACCEPT_CONFESS_USER_ID},
|
||||||
ACCEPT_CONFESS_USER_SIGNER_PATH = #{ACCEPT_CONFESS_USER_SIGNER_PATH},
|
ACCEPT_CONFESS_USER_SIGNER_PATH = #{ACCEPT_CONFESS_USER_SIGNER_PATH},
|
||||||
ACCEPT_CONFESS_USER_SIGNER_TIME = #{ACCEPT_CONFESS_USER_SIGNER_TIME},
|
ACCEPT_CONFESS_USER_SIGNER_TIME = #{ACCEPT_CONFESS_USER_SIGNER_TIME},
|
||||||
|
CONFIRM_OTHER_CONTENT = #{CONFIRM_OTHER_CONTENT},
|
||||||
HOTWORK_ID = HOTWORK_ID
|
HOTWORK_ID = HOTWORK_ID
|
||||||
where
|
where
|
||||||
HOTWORK_ID = #{HOTWORK_ID}
|
HOTWORK_ID = #{HOTWORK_ID}
|
||||||
|
@ -542,6 +546,7 @@
|
||||||
f.ACCEPT_CONFESS_USER_SIGNER_PATH,
|
f.ACCEPT_CONFESS_USER_SIGNER_PATH,
|
||||||
f.ACCEPT_CONFESS_USER_SIGNER_TIME,
|
f.ACCEPT_CONFESS_USER_SIGNER_TIME,
|
||||||
f.HOTWORK_ID,
|
f.HOTWORK_ID,
|
||||||
|
f.CONFIRM_OTHER_CONTENT,
|
||||||
ad.NAME as APPLY_DEPARTMENT_NAME,
|
ad.NAME as APPLY_DEPARTMENT_NAME,
|
||||||
au.NAME as APPLY_USER_NAME,
|
au.NAME as APPLY_USER_NAME,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue