forked from integrated_whb/integrated_whb
动火作业 获取所有措施 获取需要签字的措施 获取所有签字完成的措施
parent
79a69dd4ef
commit
e892e0c892
|
@ -145,4 +145,44 @@ public class AppHotworkController extends BaseController {
|
|||
map.put("result",errInfo);
|
||||
return map;
|
||||
}
|
||||
|
||||
@RequestMapping("/listAllMeasures")
|
||||
@ResponseBody
|
||||
public Object listAllMeasures() throws Exception {
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
List<PageData> measuresList = hotworkService.listAllMeasures();
|
||||
map.put("result",errInfo);
|
||||
map.put("measuresList",measuresList);
|
||||
return map;
|
||||
}
|
||||
|
||||
@RequestMapping("/listAllMeasuresForSign")
|
||||
@ResponseBody
|
||||
public Object listAllMeasuresForSign() throws Exception {
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
List<PageData> measuresForSignList = hotworkService.listAllMeasuresForSign(pd);
|
||||
map.put("result",errInfo);
|
||||
map.put("measuresForSignList",measuresForSignList);
|
||||
return map;
|
||||
}
|
||||
|
||||
@RequestMapping("/listSignFinishMeasures")
|
||||
@ResponseBody
|
||||
public Object listSignFinishMeasures() throws Exception {
|
||||
Map<String,Object> map = new HashMap<>();
|
||||
String errInfo = "success";
|
||||
PageData pd = new PageData();
|
||||
pd = this.getPageData();
|
||||
List<PageData> finishMeasuresList = hotworkService.listSignFinishMeasures(pd);
|
||||
map.put("result",errInfo);
|
||||
map.put("finishMeasuresList",finishMeasuresList);
|
||||
return map;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -18,4 +18,6 @@ public interface HotworkMapper {
|
|||
void editStep(PageData pd);
|
||||
List<PageData> datalistPage(Page page);
|
||||
void cancel(PageData pd);
|
||||
List<PageData> listAllMeasures();
|
||||
|
||||
}
|
||||
|
|
|
@ -51,5 +51,8 @@ public interface HotworkToMeasuresMapper {
|
|||
*/
|
||||
void deleteAll(String[] ArrayDATA_IDS);
|
||||
|
||||
List<PageData> listAllMeasuresForSign(PageData pd);
|
||||
|
||||
List<PageData> listSignFinishMeasures(PageData pd);
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,8 @@ public interface HotworkService {
|
|||
void nextStep(PageData pd, MultipartFile file) throws Exception;
|
||||
|
||||
void accept(PageData pd)throws Exception;
|
||||
void cancel(PageData pd)throws Exception;
|
||||
|
||||
void cancel(PageData pd) throws Exception;
|
||||
|
||||
PageData findById(PageData pd) throws Exception;
|
||||
|
||||
|
|
|
@ -200,6 +200,23 @@ public class HotworkServiceImpl implements HotworkService {
|
|||
return pageData;
|
||||
}
|
||||
|
||||
@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 {
|
||||
PageData flow = new PageData();
|
||||
flow.put("TASK_ID", TASK_ID);
|
||||
|
|
|
@ -335,4 +335,11 @@
|
|||
and f.
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="listAllMeasures" resultType="pd">
|
||||
select
|
||||
*
|
||||
from
|
||||
BUS_HOTWORK_MEASURES
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
@ -142,4 +142,23 @@
|
|||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
<select id="listAllMeasuresForSign" parameterType="pd" resultType="pd">
|
||||
select
|
||||
<include refid="Field"></include>
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
where
|
||||
f.HOTWORK_ID = #{HOTWORK_ID} and f.CONFIRM_ID = #{CONFIRM_ID}
|
||||
</select>
|
||||
|
||||
<select id="listSignFinishMeasures" parameterType="pd" resultType="pd">
|
||||
select
|
||||
<include refid="Field"></include>
|
||||
from
|
||||
<include refid="tableName"></include> f
|
||||
where
|
||||
f.HOTWORK_ID = #{HOTWORK_ID}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
|
Loading…
Reference in New Issue