修复bug

pull/4/head
zhangqihang 2024-02-22 08:42:40 +08:00
parent 0daa256c35
commit c4730709b2
13 changed files with 231 additions and 30 deletions

View File

@ -404,5 +404,41 @@ public class AppKeyProjectsController extends BaseController {
return map; return map;
} }
/**
* @param
* @throws Exception
*/
@RequestMapping(value="/goEdit")
@ResponseBody
public Object goEdit() throws Exception{
Map<String,Object> map = new HashMap<String,Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
pd = personnelmanagementService.findByOutsourced(pd); //根据ID读取
map.put("pd", pd);
map.put("result", errInfo);
return map;
}
/**
* @throws Exception
*/
@RequestMapping(value="/getPUNISHlist")
@ResponseBody
public Object getPUNISHlist(Page page) throws Exception{
Map<String,Object> map = new HashMap<String,Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件
if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim());
page.setPd(pd);
List<PageData> varList = outsourcedService.getPUNISHlist(page); //列出OutSourced列表
map.put("varList", varList);
map.put("page", page);
map.put("result", errInfo);
return map;
}
} }

View File

@ -664,4 +664,25 @@ public class AppKeyprojectCheckController extends BaseController {
map.put("dockData", JSON.toJSONString(pd)); map.put("dockData", JSON.toJSONString(pd));
return map; return map;
} }
/**
* @param page
* @throws Exception
*/
@RequestMapping(value="/punishlist")
@ResponseBody
public Object punishlist(Page page) throws Exception{
Map<String,Object> map = new HashMap<String,Object>();
String errInfo = "success";
PageData pd = new PageData();
pd = this.getPageData();
String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件
if(Tools.notEmpty(KEYWORDS))pd.put("KEYWORDS", KEYWORDS.trim());
page.setPd(pd);
List<PageData> varList = keyprojectHiddenService.getpunishlist(page); //列出KeyprojectCheck列表
map.put("varList", varList);
map.put("page", page);
map.put("result", errInfo);
return map;
}
} }

View File

@ -90,5 +90,7 @@ public interface OutSourcedMapper{
List<PageData> outSouceslistPage(Page page); List<PageData> outSouceslistPage(Page page);
Integer getDingWeiSum(PageData pd); Integer getDingWeiSum(PageData pd);
List<PageData> getPUNISHlistPage(Page page);
} }

View File

@ -66,5 +66,7 @@ public interface PersonnelManagementMapper{
void editPassword(PageData pd); void editPassword(PageData pd);
PageData findForLogin(PageData pd); PageData findForLogin(PageData pd);
PageData findByOutsourced(PageData pd);
} }

View File

@ -192,5 +192,7 @@ public interface KeyprojectHiddenService {
* @return * @return
*/ */
String getCorpInfoIdByHiddenId(PageData pd); String getCorpInfoIdByHiddenId(PageData pd);
List<PageData> getpunishlist(Page page);
} }

View File

@ -264,5 +264,6 @@ public class KeyprojectHiddenServiceImpl implements KeyprojectHiddenService {
public String getCorpInfoIdByHiddenId(PageData pd) { public String getCorpInfoIdByHiddenId(PageData pd) {
return hiddenMapper.getCorpInfoIdByHiddenId(pd); return hiddenMapper.getCorpInfoIdByHiddenId(pd);
} }
} }

View File

@ -95,5 +95,7 @@ public interface OutSourcedService{
List<PageData> outSouceslistPage(Page page); List<PageData> outSouceslistPage(Page page);
Integer getDingWeiSum(PageData pd); Integer getDingWeiSum(PageData pd);
List<PageData> getPUNISHlist(Page page);
} }

View File

@ -147,5 +147,10 @@ public class OutSourcedServiceImpl implements OutSourcedService{
return outsourcedMapper.getDingWeiSum(pd); return outsourcedMapper.getDingWeiSum(pd);
} }
@Override
public List<PageData> getPUNISHlist(Page page) {
return outsourcedMapper.getPUNISHlistPage(page);
}
} }

View File

@ -66,5 +66,7 @@ public interface PersonnelManagementService{
void editPassword(PageData updateUser) throws Exception; void editPassword(PageData updateUser) throws Exception;
PageData findForLogin(PageData pd); PageData findForLogin(PageData pd);
PageData findByOutsourced(PageData pd);
} }

View File

@ -105,5 +105,10 @@ public class PersonnelManagementServiceImpl implements PersonnelManagementServic
return personnelmanagementMapper.findForLogin(pd); return personnelmanagementMapper.findForLogin(pd);
} }
@Override
public PageData findByOutsourced(PageData pd) {
return personnelmanagementMapper.findByOutsourced(pd);
}
} }

View File

@ -1580,13 +1580,13 @@
h.* h.*
FROM FROM
bus_keyproject_hidden h bus_keyproject_hidden h
LEFT JOIN us_keyprojectcheck c ON h.FOREIGN_ID = c.KEYPROJECTCHECK_ID LEFT JOIN bus_keyprojectcheck c ON h.FOREIGN_ID = c.KEYPROJECTCHECK_ID
LEFT JOIN us_keyprojectpunish p ON p.HIDDEN_ID = h.HIDDEN_ID LEFT JOIN bus_keyprojectpunish p ON p.HIDDEN_ID = h.HIDDEN_ID
LEFT JOIN us_units u ON h.RECTIFICATIONDEPT = u.UNITS_ID LEFT JOIN bus_units u ON h.RECTIFICATIONDEPT = u.UNITS_ID
LEFT JOIN us_personnelmanagement per on per.PERSONNELMANAGEMENT_ID = p.PERSONNELMANAGEMENT_ID LEFT JOIN bus_personnelmanagement per on per.PERSONNELMANAGEMENT_ID = p.PERSONNELMANAGEMENT_ID
LEFT JOIN i_user_all v ON v.USER_ID = p.CREATOR LEFT JOIN vi_user_all v ON v.USER_ID = p.CREATOR
LEFT JOIN i_user_all vv ON vv.USER_ID = h.PUNISH_PERSON LEFT JOIN vi_user_all vv ON vv.USER_ID = h.PUNISH_PERSON
LEFT JOIN us_personnelmanagement vi ON vi.PERSONNELMANAGEMENT_ID = h.RECTIFICATIONOR LEFT JOIN bus_personnelmanagement vi ON vi.PERSONNELMANAGEMENT_ID = h.RECTIFICATIONOR
WHERE WHERE
h.ISDELETE = '0' h.ISDELETE = '0'
<if test="pd.HANDLED==1"> <if test="pd.HANDLED==1">

View File

@ -331,7 +331,7 @@
( select GROUP_CONCAT(t.CORP_NAME) from BUS_CORP_INFO t where FIND_IN_SET(t.CORPINFO_ID, f.MANAGE_NAME)) as MANAGE_CORPS_NAME, ( select GROUP_CONCAT(t.CORP_NAME) from BUS_CORP_INFO t where FIND_IN_SET(t.CORPINFO_ID, f.MANAGE_NAME)) as MANAGE_CORPS_NAME,
( SELECT GROUP_CONCAT( t.NAME ) FROM oa_department t WHERE FIND_IN_SET( t.DEPARTMENT_ID, f.INVOLVING_CORPS_DEPART_ID ) ) AS INVOLVING_CORPS_DEPART_NAME, ( SELECT GROUP_CONCAT( t.NAME ) FROM oa_department t WHERE FIND_IN_SET( t.DEPARTMENT_ID, f.INVOLVING_CORPS_DEPART_ID ) ) AS INVOLVING_CORPS_DEPART_NAME,
(select GROUP_CONCAT(t.NAME) from ( SELECT CONCAT( CONCAT( c.CORP_NAME, '-' ), t.NAME ) NAME ,t.DEPARTMENT_ID FROM OA_DEPARTMENT t LEFT JOIN bus_corp_info c ON c.CORPINFO_ID = t.CORPINFO_ID) t where FIND_IN_SET(t.DEPARTMENT_ID, f.JURISDICTION_UNIT)) as JURISDICTION_UNIT_NAME, (select GROUP_CONCAT(t.NAME) from ( SELECT CONCAT( CONCAT( c.CORP_NAME, '-' ), t.NAME ) NAME ,t.DEPARTMENT_ID FROM OA_DEPARTMENT t LEFT JOIN bus_corp_info c ON c.CORPINFO_ID = t.CORPINFO_ID) t where FIND_IN_SET(t.DEPARTMENT_ID, f.JURISDICTION_UNIT)) as JURISDICTION_UNIT_NAME,
ifnull(vac.CORP_NAME,'秦港股份有限公司') CORP_NAME, vuad.NAME CORP_NAME,
p.`NAME` as UNITS_PIC_NAME p.`NAME` as UNITS_PIC_NAME
from from
<include refid="tableName"></include> f <include refid="tableName"></include> f
@ -340,7 +340,8 @@
LEFT JOIN oa_department pcij ON pcij.DEPARTMENT_ID = f.DEPARTMENT_ID LEFT JOIN oa_department pcij ON pcij.DEPARTMENT_ID = f.DEPARTMENT_ID
left join oa_department a on a.DEPARTMENT_ID = f.DEPARTMENT_ID left join oa_department a on a.DEPARTMENT_ID = f.DEPARTMENT_ID
left join bus_units b using (UNITS_ID) left join bus_units b using (UNITS_ID)
LEFT JOIN vi_user_all vua on f.CREATOR = vua.USERNAME LEFT JOIN sys_user vua on f.CREATOR = vua.USERNAME and vua.ISDELETE = '0'
LEFT JOIN oa_department vuad ON vuad.DEPARTMENT_ID = vua.DEPARTMENT_ID
LEFT JOIN vi_all_corp vac on vua.CORPINFO_ID = vac.CORPINFO_ID LEFT JOIN vi_all_corp vac on vua.CORPINFO_ID = vac.CORPINFO_ID
LEFT JOIN bus_personnelmanagement p on p.PERSONNELMANAGEMENT_ID = f.UNITS_PIC LEFT JOIN bus_personnelmanagement p on p.PERSONNELMANAGEMENT_ID = f.UNITS_PIC
where f.ISDELETE = '0' where f.ISDELETE = '0'
@ -648,6 +649,8 @@
<!-- 列表 --> <!-- 列表 -->
<select id="outSouceslistPage" parameterType="page" resultType="pd"> <select id="outSouceslistPage" parameterType="page" resultType="pd">
select select
f.WORK_LONGITUDE,
f.WORK_LATITUDE,
f.CONTRACT_PIC, f.CONTRACT_PIC,
f.STARTTIME, f.STARTTIME,
f.ENDTIME, f.ENDTIME,
@ -850,4 +853,112 @@
AND (WORK_LONGITUDE IS NULL or WORK_LONGITUDE = '' ) AND (WORK_LONGITUDE IS NULL or WORK_LONGITUDE = '' )
) c ) c
</select> </select>
<select id="getPUNISHlistPage" parameterType="page" resultType="pd">
select
f.WORK_LONGITUDE,
f.WORK_LATITUDE,
f.CONTRACT_PIC,
f.STARTTIME,
f.ENDTIME,
f.OUTSOURCED_NAME,
f.CONTRACT_STIME,
f.CONTRACT_ETIME,
f.CONTRACT_NUM,
f.UNITS_APTITUDE,
f.UNITS_PIC,
f.UNITS_PHONE,
f.MANAGE_NAME,
f.DESIGE,
f.MANAGE_APTITUDE,
f.MANAGE_PIC,
f.MANAGE_PHONE,
f.MEASURES,
f.ATTACHMENTS,
f.REMARKS,
f.TRAINING_NAME,
f.TRAINING_PIC,
f.TRAINING_STIME,
f.TRAINING_ETIME,
f.RECORDS,
f.SHEET,
f.EXAMINATION,
f.OATTACHMENTS,
f.CREATOR,
f.CREATTIME,
f.OPERATOR,
f.OPERATTIME,
f.ISDELETE,
f.CORPINFO_ID,
f.APPLICANT,
f.STATE,
f.OUTSOURCED_ID,
f.UNITS_APTITUDEPATH,
f.MANAGE_APTITUDEPATH,
f.MEASURESPATH,
f.DESIGEPATH,
f.ATTACHMENTSPATH,
f.RECORDSPATH,
f.SHEETPATH,
f.EXAMINATIONPATH,
f.OATTACHMENTSPATH,
a.NAME as DEPARTMENT_ID,
pcij.NAME Q_DEPARTMENT_NAME,
isdd.NAME MANAGER_DEPARTMENT_NAME,
b.UNITS_NAME as UNITS_NAME,
vua.NAME OUTSOURCED_CREATOR_NAME,
pci.NAME Q_COMPETENT_DEPT_NAME,
( SELECT GROUP_CONCAT( t.NAME ) FROM oa_department t WHERE FIND_IN_SET( t.DEPARTMENT_ID, f.DEPARTMENT_ID ) ) AS DEPARTMENT_NAME,
( select count(1) from BUS_KEYPROJECTCHECK c where c.OUTSOURCED_ID = f.OUTSOURCED_ID) as CHECK_COUNT,
( select GROUP_CONCAT(t.CORP_NAME) from BUS_CORP_INFO t where FIND_IN_SET(t.CORPINFO_ID, f.MANAGE_NAME)) as MANAGE_CORPS_NAME,
( SELECT GROUP_CONCAT( t.NAME ) FROM oa_department t WHERE FIND_IN_SET( t.DEPARTMENT_ID, f.INVOLVING_CORPS_DEPART_ID ) ) AS INVOLVING_CORPS_DEPART_NAME,
(select GROUP_CONCAT(t.NAME) from ( SELECT CONCAT( CONCAT( c.CORP_NAME, '-' ), t.NAME ) NAME ,t.DEPARTMENT_ID FROM OA_DEPARTMENT t LEFT JOIN bus_corp_info c ON c.CORPINFO_ID = t.CORPINFO_ID) t where FIND_IN_SET(t.DEPARTMENT_ID, f.JURISDICTION_UNIT)) as JURISDICTION_UNIT_NAME,
ifnull(vac.CORP_NAME,'秦港股份有限公司') CORP_NAME,
p.`NAME` as UNITS_PIC_NAME
,ifnull(cfsl.co,0) as cfcount
from
<include refid="tableName"></include> f
LEFT JOIN oa_department pci ON pci.DEPARTMENT_ID = f.COMPETENT_DEPT_ID
LEFT JOIN oa_department isdd ON isdd.DEPARTMENT_ID = f.MANAGER_DEPARTMENT_ID
LEFT JOIN oa_department pcij ON pcij.DEPARTMENT_ID = f.DEPARTMENT_ID
left join oa_department a on a.DEPARTMENT_ID = f.DEPARTMENT_ID
left join bus_units b using (UNITS_ID)
LEFT JOIN vi_user_all vua on f.CREATOR = vua.USERNAME
LEFT JOIN vi_all_corp vac on vua.CORPINFO_ID = vac.CORPINFO_ID
LEFT JOIN bus_personnelmanagement p on p.PERSONNELMANAGEMENT_ID = f.UNITS_PIC
left join (SELECT PUN.OUTSOURCED_ID,COUNT( distinct PUN.HIDDEN_ID) co FROM (
SELECT
f.HIDDEN_ID,ifnull(bo.OUTSOURCED_ID,boai.OUTSOURCED_ID) OUTSOURCED_ID
FROM
BUS_KEYPROJECT_HIDDEN f
LEFT JOIN bus_keyprojectcheck keycheck ON keycheck.KEYPROJECTCHECK_ID = f.FOREIGN_ID
LEFT JOIN BUS_OUTSOURCED bo ON keycheck.OUTSOURCED_ID = bo.OUTSOURCED_ID
LEFT JOIN BUS_OUTSOURCED boai ON f.FOREIGN_ID = boai.OUTSOURCED_ID
WHERE
f.ISDELETE = '0'
AND f.SOURCE IN ( '4', '5', '1' )
AND ifnull(bo.OUTSOURCED_ID,boai.OUTSOURCED_ID) IS NOT NULL
and f.ISPUNISH is null
) PUN GROUP BY PUN.OUTSOURCED_ID ) cfsl on cfsl.OUTSOURCED_ID = f.OUTSOURCED_ID
where f.ISDELETE = '0'
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
and
(
<!-- 根据需求自己加检索条件-->
f.OUTSOURCED_NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
or
b.UNITS_NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
or
f.UNITS_PIC LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
or
pcij.NAME LIKE CONCAT(CONCAT('%', #{pd.KEYWORDS}),'%')
)
</if>
and f.PUNISH_THE_PERSON LIKE CONCAT( CONCAT( '%', #{pd.PUNISHUser} ), '%' )
AND f.STATE = '1'
ORDER BY
cfsl.co DESC,
f.OPERATTIME DESC
</select>
</mapper> </mapper>

View File

@ -33,7 +33,8 @@
f.OPERATTIME, f.OPERATTIME,
f.ISDELETE, f.ISDELETE,
f.CORPINFO_ID, f.CORPINFO_ID,
f.PERSONNELMANAGEMENT_ID f.PERSONNELMANAGEMENT_ID,
f.PASSWORD
</sql> </sql>
<!-- 字段用于新增 --> <!-- 字段用于新增 -->
@ -263,4 +264,15 @@
</foreach> </foreach>
</delete> </delete>
<select id="findByOutsourced" parameterType="pd" resultType="pd">
select
f.*
from
<include refid="tableName"></include> f
left join BUS_OUTSOURCED t on t.UNITS_PIC = f.PERSONNELMANAGEMENT_ID
where
t.OUTSOURCED_ID = #{OUTSOURCED_ID}
and t.ISDELETE = '0'
</select>
</mapper> </mapper>