Merge branch 'dev' into lmy20231113
commit
4111ee1565
|
@ -118,6 +118,7 @@ public class AppAIWarningController extends BaseController {
|
||||||
hidden.put("HIDDEN_ID",HIDDEN_ID); //主键
|
hidden.put("HIDDEN_ID",HIDDEN_ID); //主键
|
||||||
pd.put("HIDDEN_ID",hidden.getString("HIDDEN_ID"));
|
pd.put("HIDDEN_ID",hidden.getString("HIDDEN_ID"));
|
||||||
hidden.put("FOREIGN_ID", pd.getString("OUTSOURCED_ID")); //外键ID
|
hidden.put("FOREIGN_ID", pd.getString("OUTSOURCED_ID")); //外键ID
|
||||||
|
hidden.put("CORPINFO_ID", pd.getString("CORPINFO_ID")); //隐患发现人的公司
|
||||||
hidden.put("HIDDENDESCR", json.getString("HIDDENDESCR")); //隐患描述
|
hidden.put("HIDDENDESCR", json.getString("HIDDENDESCR")); //隐患描述
|
||||||
hidden.put("HIDDENPART", json.getString("HIDDENPART")); //隐患部位
|
hidden.put("HIDDENPART", json.getString("HIDDENPART")); //隐患部位
|
||||||
hidden.put("HIDDENLEVEL", json.getString("HIDDENLEVEL")); //隐患级别
|
hidden.put("HIDDENLEVEL", json.getString("HIDDENLEVEL")); //隐患级别
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class AppKeyprojectCheckController extends BaseController {
|
||||||
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
|
||||||
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
pd.put("OPERATTIME", DateUtil.date2Str(new Date())); //修改时间
|
||||||
pd.put("ISDELETE", 0); //是否删除
|
pd.put("ISDELETE", 0); //是否删除
|
||||||
pd.put("SOURCE", 1); //企业ID
|
pd.put("SOURCE", 2); //企业2
|
||||||
keyprojectcheckService.save(pd);
|
keyprojectcheckService.save(pd);
|
||||||
|
|
||||||
String currentTime = DateUtil.date2Str(new Date());
|
String currentTime = DateUtil.date2Str(new Date());
|
||||||
|
@ -85,8 +85,9 @@ public class AppKeyprojectCheckController extends BaseController {
|
||||||
time = DateUtil.calculateDateSecond(time, 1);
|
time = DateUtil.calculateDateSecond(time, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Boolean boo = false; // 增加开关控制
|
||||||
if (Tools.notEmpty(pd.getString("HIDDENJSON"))) {
|
if (Tools.notEmpty(pd.getString("HIDDENJSON"))) {
|
||||||
|
boo = true;
|
||||||
List<PageData> hiddenList = new ArrayList<PageData>();
|
List<PageData> hiddenList = new ArrayList<PageData>();
|
||||||
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.getString("HIDDENJSON"));
|
List<JSONObject> list = (List<JSONObject>) JSON.parse(pd.getString("HIDDENJSON"));
|
||||||
String time = currentTime;
|
String time = currentTime;
|
||||||
|
@ -142,6 +143,32 @@ public class AppKeyprojectCheckController extends BaseController {
|
||||||
records = SendSmsUtil.getRecords(person.getString("PHONENUM"),tpContent);
|
records = SendSmsUtil.getRecords(person.getString("PHONENUM"),tpContent);
|
||||||
jsonArray.add(records);
|
jsonArray.add(records);
|
||||||
SendSmsUtil.sendSms("121451",jsonArray,null);
|
SendSmsUtil.sendSms("121451",jsonArray,null);
|
||||||
|
//发送罚款待处理 上文开关控制这里发送不
|
||||||
|
if(boo){
|
||||||
|
List<JSONObject> jsonList = (List<JSONObject>) JSON.parse(pd.getString("HIDDENJSON"));
|
||||||
|
String PUNISHTHEPERSON = keyprojectHiddenService.getPUNISHTHEPERSON(pd);
|
||||||
|
if (!Tools.isEmpty(PUNISHTHEPERSON)) {
|
||||||
|
PageData selectPageData = new PageData();
|
||||||
|
String[] split = PUNISHTHEPERSON.split(",");
|
||||||
|
selectPageData.put("ids", split);
|
||||||
|
List<String> list = keyprojectHiddenService.getPhone(selectPageData);
|
||||||
|
for (JSONObject json : jsonList) {
|
||||||
|
for(String phone:list) {
|
||||||
|
JSONArray jsonBrray = new JSONArray();
|
||||||
|
//接受返回结果
|
||||||
|
JSONObject recordsB = new JSONObject();
|
||||||
|
//定义替换参数
|
||||||
|
JSONObject tpContentB = new JSONObject();
|
||||||
|
tpContentB.put("HIDDENDESCR",json.getString("HIDDENDESCR")); //隐患描述
|
||||||
|
if(StringUtils.isNotBlank(phone)){
|
||||||
|
recordsB = SendSmsUtil.getRecords(phone,tpContentB);
|
||||||
|
jsonBrray.add(recordsB);
|
||||||
|
SendSmsUtil.sendSms("121487",jsonBrray,null);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
|
@ -517,6 +517,7 @@ public class UsersController extends BaseController {
|
||||||
String errInfo = "success";
|
String errInfo = "success";
|
||||||
PageData pd = new PageData();
|
PageData pd = new PageData();
|
||||||
pd = this.getPageData();
|
pd = this.getPageData();
|
||||||
|
|
||||||
// if(pd.get("USERAVATARURL")!=null && !pd.getString("USERAVATARURL").equals("")){
|
// if(pd.get("USERAVATARURL")!=null && !pd.getString("USERAVATARURL").equals("")){
|
||||||
// System.out.println("USERAVATARURL原长度:"+pd.getString("USERAVATARURL").length());
|
// System.out.println("USERAVATARURL原长度:"+pd.getString("USERAVATARURL").length());
|
||||||
// String USERAVATARURL64 = ImageAnd64Binary.zipBase64(pd.getString("USERAVATARURL"));
|
// String USERAVATARURL64 = ImageAnd64Binary.zipBase64(pd.getString("USERAVATARURL"));
|
||||||
|
@ -562,6 +563,12 @@ public class UsersController extends BaseController {
|
||||||
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
||||||
pd.put("IS_ONLINELEARNING", '1');
|
pd.put("IS_ONLINELEARNING", '1');
|
||||||
}
|
}
|
||||||
|
// todo
|
||||||
|
// 定位卡号 规则 如果俩个人使用同一一个卡号,最后一个人会是这个卡号。保证一个卡号一个人用。(11.28)
|
||||||
|
// 不同的公司,它定位卡的配置方案是不一样的,就你像九公司,九公司的卡是随机的。就他不是卡跟着人走,他就一天一变。 目前暂定这样
|
||||||
|
if (Tools.notEmpty(pd.getString("CARDNO"))) {
|
||||||
|
usersService.resetCardNo(pd);
|
||||||
|
}
|
||||||
usersService.editUser(pd); //执行修改
|
usersService.editUser(pd); //执行修改
|
||||||
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
||||||
pd.put("IS_ONLINELEARNING", "1");
|
pd.put("IS_ONLINELEARNING", "1");
|
||||||
|
@ -909,6 +916,14 @@ public class UsersController extends BaseController {
|
||||||
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
||||||
pd.put("IS_ONLINELEARNING", '1');
|
pd.put("IS_ONLINELEARNING", '1');
|
||||||
}
|
}
|
||||||
|
// todo
|
||||||
|
// 定位卡号 规则 如果俩个人使用同一一个卡号,最后一个人会是这个卡号。保证一个卡号一个人用。(11.28)
|
||||||
|
// 不同的公司,它定位卡的配置方案是不一样的,就你像九公司,九公司的卡是随机的。就他不是卡跟着人走,他就一天一变。 目前暂定这样
|
||||||
|
if (Tools.notEmpty(pd.getString("CARDNO"))) {
|
||||||
|
usersService.resetCardNo(pd);
|
||||||
|
}else {
|
||||||
|
pd.put("CARDNO",null);
|
||||||
|
}
|
||||||
usersService.saveUser(pd);
|
usersService.saveUser(pd);
|
||||||
//执行保存
|
//执行保存
|
||||||
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
if ("true".equals(pd.getString("ISSTUDENT"))) {
|
||||||
|
|
|
@ -158,5 +158,14 @@ public interface KeyprojectHiddenMapper {
|
||||||
*/
|
*/
|
||||||
List<PageData> getpunishlistPage(Page page);
|
List<PageData> getpunishlistPage(Page page);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取当前隐患的处罚人
|
||||||
|
* @param pd
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
String getPUNISHTHEPERSON(PageData pd);
|
||||||
|
|
||||||
|
|
||||||
|
List<String> getPhone(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -297,4 +297,6 @@ public interface UsersMapper {
|
||||||
PageData findByCorpInfoId(PageData pd);
|
PageData findByCorpInfoId(PageData pd);
|
||||||
|
|
||||||
List<PageData> selectUserListByUserIds(PageData pd);
|
List<PageData> selectUserListByUserIds(PageData pd);
|
||||||
|
|
||||||
|
void resetCardNo(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -180,5 +180,14 @@ public interface KeyprojectHiddenService {
|
||||||
public PageData keyprojectcount(PageData pd)throws Exception;
|
public PageData keyprojectcount(PageData pd)throws Exception;
|
||||||
|
|
||||||
List<PageData> getpunishlist(Page page);
|
List<PageData> getpunishlist(Page page);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取当前隐患的处罚人
|
||||||
|
* @param pd
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
String getPUNISHTHEPERSON(PageData pd);
|
||||||
|
|
||||||
|
List<String> getPhone(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -253,5 +253,15 @@ public class KeyprojectHiddenServiceImpl implements KeyprojectHiddenService {
|
||||||
public List<PageData> getpunishlist(Page page) {
|
public List<PageData> getpunishlist(Page page) {
|
||||||
return hiddenMapper.getpunishlistPage(page);
|
return hiddenMapper.getpunishlistPage(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getPUNISHTHEPERSON(PageData pd) {
|
||||||
|
return hiddenMapper.getPUNISHTHEPERSON(pd);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<String> getPhone(PageData pd) {
|
||||||
|
return hiddenMapper.getPhone(pd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -348,4 +348,6 @@ public interface UsersService {
|
||||||
|
|
||||||
|
|
||||||
List<PageData> selectUserListByUserIds(PageData selectPageData);
|
List<PageData> selectUserListByUserIds(PageData selectPageData);
|
||||||
|
|
||||||
|
void resetCardNo(PageData pd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -463,4 +463,9 @@ public class UsersServiceImpl implements UsersService {
|
||||||
public List<PageData> selectUserListByUserIds(PageData pd) {
|
public List<PageData> selectUserListByUserIds(PageData pd) {
|
||||||
return usersMapper.selectUserListByUserIds(pd);
|
return usersMapper.selectUserListByUserIds(pd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void resetCardNo(PageData pd) {
|
||||||
|
usersMapper.resetCardNo(pd);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,8 +61,9 @@ spring.main.banner-mode=off
|
||||||
#
|
#
|
||||||
#qa-regulatory-gwj.api.url=http://192.168.0.79:8008
|
#qa-regulatory-gwj.api.url=http://192.168.0.79:8008
|
||||||
|
|
||||||
preventionxgf.api.url=http://192.168.0.31:8992/qa-prevention-xgf/
|
preventionxgf.api.url=http://192.168.0.79:8088/
|
||||||
qa-regulatory-gwj.api.url=http://192.168.0.31:8992/qa-regulatory-gwj/
|
qa-regulatory-gwj.api.url=http://192.168.0.79:8092/
|
||||||
|
|
||||||
#?????
|
#?????
|
||||||
smb.host=39.103.224.166
|
smb.host=39.103.224.166
|
||||||
smb.port=22
|
smb.port=22
|
||||||
|
|
|
@ -10,3 +10,4 @@ spring.profiles.active=dev
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -358,7 +358,7 @@
|
||||||
</if>
|
</if>
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
<if test="pd.OUTSOURCED_ID != null and pd.OUTSOURCED_ID != ''">
|
<if test="pd.OUTSOURCED_ID != null and pd.OUTSOURCED_ID != ''">
|
||||||
and bo.OUTSOURCED_ID = #{pd.OUTSOURCED_ID}
|
and (bo.OUTSOURCED_ID = #{pd.OUTSOURCED_ID} or f.FOREIGN_ID = #{pd.OUTSOURCED_ID})
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.ISRECTIFY != null and pd.ISRECTIFY !='' and pd.ISRECTIFY == 1" >
|
<if test="pd.ISRECTIFY != null and pd.ISRECTIFY !='' and pd.ISRECTIFY == 1" >
|
||||||
and f.STATE = 1
|
and f.STATE = 1
|
||||||
|
@ -1606,4 +1606,21 @@
|
||||||
h.ISPUNISH ASC,
|
h.ISPUNISH ASC,
|
||||||
p.HANDLED DESC
|
p.HANDLED DESC
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="getPUNISHTHEPERSON" parameterType="pd" resultType="string">
|
||||||
|
SELECT gc.PUNISH_THE_PERSON PUNISH_THE_PERSON FROM `qa-gwj-regulatory`.BUS_OUTSOURCED gc
|
||||||
|
WHERE gc.OUTSOURCED_ID=#{OUTSOURCED_ID}
|
||||||
|
AND gc.IS_SMS = '0'
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="getPhone" parameterType="pd" resultType="string">
|
||||||
|
SELECT
|
||||||
|
IFNULL(PHONE,USERNAME) PHONE FROM vi_user_all WHERE
|
||||||
|
<if test="ids!= null and ids.length>0">
|
||||||
|
USER_ID IN
|
||||||
|
<foreach item="item" index="index" collection="ids" open="(" separator="," close=")">
|
||||||
|
#{item}
|
||||||
|
</foreach>
|
||||||
|
</if>
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
@ -168,11 +168,12 @@
|
||||||
u.UNITS_NAME,
|
u.UNITS_NAME,
|
||||||
p.NAME AS PERSON_NAME
|
p.NAME AS PERSON_NAME
|
||||||
from
|
from
|
||||||
<include refid="tableName"></include> f
|
BUS_KEYPROJECTPUNISH f
|
||||||
|
LEFT JOIN `qa-gwj-prevention`.bus_keyprojectcheck k ON f.KEYPROJECTCHECK_ID = k.KEYPROJECTCHECK_ID
|
||||||
left join `qa-gwj-prevention`.vi_user_all cr on cr.USER_ID = f.CREATOR
|
left join `qa-gwj-prevention`.vi_user_all cr on cr.USER_ID = f.CREATOR
|
||||||
left join `qa-gwj-regulatory`.sys_user cre on cre.USER_ID = f.CREATOR
|
left join `qa-gwj-regulatory`.sys_user cre on cre.USER_ID = f.CREATOR
|
||||||
left join `qa-gwj-regulatory`.BUS_UNITS u on u.UNITS_ID = f.UNITS_ID
|
left join `qa-gwj-regulatory`.BUS_UNITS u on u.UNITS_ID = f.UNITS_ID
|
||||||
left join `qa-gwj-regulatory`.BUS_OUTSOURCED o on o.UNITS_ID = u.UNITS_ID
|
left join `qa-gwj-regulatory`.BUS_OUTSOURCED o on o.OUTSOURCED_ID = k.OUTSOURCED_ID
|
||||||
left join `qa-gwj-regulatory`.BUS_PERSONNELMANAGEMENT p on p.PERSONNELMANAGEMENT_ID = f.PERSONNELMANAGEMENT_ID
|
left join `qa-gwj-regulatory`.BUS_PERSONNELMANAGEMENT p on p.PERSONNELMANAGEMENT_ID = f.PERSONNELMANAGEMENT_ID
|
||||||
where f.ISDELETE = '0'
|
where f.ISDELETE = '0'
|
||||||
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
<if test="pd.KEYWORDS != null and pd.KEYWORDS != ''"><!-- 关键词检索 -->
|
||||||
|
@ -184,7 +185,7 @@
|
||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.OUTSOURCED_ID != null and pd.OUTSOURCED_ID !='' " >
|
<if test="pd.OUTSOURCED_ID != null and pd.OUTSOURCED_ID !='' " >
|
||||||
and o.OUTSOURCED_ID = #{pd.OUTSOURCED_ID}
|
and k.OUTSOURCED_ID = #{pd.OUTSOURCED_ID}
|
||||||
</if>
|
</if>
|
||||||
<if test="pd.HANDLED != null and pd.HANDLED !='' and pd.HANDLED == 1" >
|
<if test="pd.HANDLED != null and pd.HANDLED !='' and pd.HANDLED == 1" >
|
||||||
and f.HANDLED = 0
|
and f.HANDLED = 0
|
||||||
|
|
|
@ -90,6 +90,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
WORKPERIOD,
|
WORKPERIOD,
|
||||||
JCR,
|
JCR,
|
||||||
CORPINFO_ID,
|
CORPINFO_ID,
|
||||||
|
CARDNO,
|
||||||
ISDELETE
|
ISDELETE
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 字段 -->
|
<!-- 字段 -->
|
||||||
|
@ -129,6 +130,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
f.WORKPERIOD,
|
f.WORKPERIOD,
|
||||||
f.JCR,
|
f.JCR,
|
||||||
f.CORPINFO_ID,
|
f.CORPINFO_ID,
|
||||||
|
f.CARDNO,
|
||||||
f.ISDELETE
|
f.ISDELETE
|
||||||
</sql>
|
</sql>
|
||||||
<!-- 字段值 -->
|
<!-- 字段值 -->
|
||||||
|
@ -165,6 +167,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
#{WORKPERIOD},
|
#{WORKPERIOD},
|
||||||
#{JCR},
|
#{JCR},
|
||||||
#{CORPINFO_ID},
|
#{CORPINFO_ID},
|
||||||
|
#{CARDNO},
|
||||||
#{ISDELETE}
|
#{ISDELETE}
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
|
@ -381,6 +384,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
IS_HAZARDCONFIRMER = #{IS_HAZARDCONFIRMER},
|
IS_HAZARDCONFIRMER = #{IS_HAZARDCONFIRMER},
|
||||||
IS_ONLINELEARNING = #{IS_ONLINELEARNING},
|
IS_ONLINELEARNING = #{IS_ONLINELEARNING},
|
||||||
PHONE = #{PHONE}
|
PHONE = #{PHONE}
|
||||||
|
<if test="CARDNO != null and CARDNO != ''">
|
||||||
|
,CARDNO = #{CARDNO}
|
||||||
|
</if>
|
||||||
<if test="DURATION != null and DURATION != ''">
|
<if test="DURATION != null and DURATION != ''">
|
||||||
,DURATION = #{DURATION}
|
,DURATION = #{DURATION}
|
||||||
</if>
|
</if>
|
||||||
|
@ -1193,6 +1199,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where
|
where
|
||||||
USER_ID = #{USER_ID}
|
USER_ID = #{USER_ID}
|
||||||
</update>
|
</update>
|
||||||
|
<update id="resetCardNo">
|
||||||
|
update sys_user set CARDNO = null where CARDNO = #{CARDNO}
|
||||||
|
</update>
|
||||||
|
|
||||||
<!-- 通过岗位ID查用户列表-->
|
<!-- 通过岗位ID查用户列表-->
|
||||||
<select id="findByPostId" parameterType="pd" resultType="pd">
|
<select id="findByPostId" parameterType="pd" resultType="pd">
|
||||||
|
|
Loading…
Reference in New Issue