消息等
This commit is contained in:
@ -64,4 +64,7 @@ public class ZtReleaseQo extends BaseQo {
|
|||||||
private Integer ysFlag;
|
private Integer ysFlag;
|
||||||
//
|
//
|
||||||
private String ysUser;
|
private String ysUser;
|
||||||
|
|
||||||
|
private String orderName;
|
||||||
|
private String orderSort;
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ public class VxService {
|
|||||||
|
|
||||||
Map<String, Object> map = new HashMap<String, Object>();
|
Map<String, Object> map = new HashMap<String, Object>();
|
||||||
map.put("touser", vxId);
|
map.put("touser", vxId);
|
||||||
//
|
// map.put("touser", "lisi");
|
||||||
map.put("agentid", agentid);
|
map.put("agentid", agentid);
|
||||||
// map.put("agentid", 3010185);
|
// map.put("agentid", 3010185);
|
||||||
map.put("safe", 0);
|
map.put("safe", 0);
|
||||||
|
@ -274,8 +274,10 @@ public class ZtStoryServiceImpl extends ServiceImpl<ZtStoryMapper, ZtStory> impl
|
|||||||
|
|
||||||
private void storySendZpMessage(Integer id, String oldUser,String newUser) {
|
private void storySendZpMessage(Integer id, String oldUser,String newUser) {
|
||||||
if(ObjectUtils.notEqual(oldUser, newUser)&&!StringUtils.isEmpty(newUser)){
|
if(ObjectUtils.notEqual(oldUser, newUser)&&!StringUtils.isEmpty(newUser)){
|
||||||
|
List<ZtProjectstory> storyExecutions = this.projectstoryService.projectListByStory(Arrays.asList(id), ProjectTypeEnums.execution);
|
||||||
this.vxService.sendMessageToVx(newUser, VxMessageUtils.storyMessage.assignToMessage(id),new Date());
|
if(!CollectionUtils.isEmpty(storyExecutions)){
|
||||||
|
this.vxService.sendMessageToVx(newUser, VxMessageUtils.storyMessage.assignToMessage(id),new Date());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,6 +114,7 @@ public class ZtTaskServiceImpl extends ServiceImpl<ZtTaskMapper, ZtTask> impleme
|
|||||||
if (ztTask == null) {
|
if (ztTask == null) {
|
||||||
throw new BusinessException("未查询到数据");
|
throw new BusinessException("未查询到数据");
|
||||||
}
|
}
|
||||||
|
String oldAssignTo = ztTask.getAssignedTo();
|
||||||
ztTask.setAssignedTo(dto.getAssignedTo());
|
ztTask.setAssignedTo(dto.getAssignedTo());
|
||||||
ztTask.setLasteditedby(RiskUserThreadLocal.get().getName());
|
ztTask.setLasteditedby(RiskUserThreadLocal.get().getName());
|
||||||
ztTask.setLastediteddate(new Date());
|
ztTask.setLastediteddate(new Date());
|
||||||
@ -122,6 +123,7 @@ public class ZtTaskServiceImpl extends ServiceImpl<ZtTaskMapper, ZtTask> impleme
|
|||||||
|
|
||||||
ZtProjectproduct projectproduct = projectproductService.getOne(new QueryWrapper<ZtProjectproduct>().lambda().eq(ZtProjectproduct::getProject, ztTask.getProject()));
|
ZtProjectproduct projectproduct = projectproductService.getOne(new QueryWrapper<ZtProjectproduct>().lambda().eq(ZtProjectproduct::getProject, ztTask.getProject()));
|
||||||
|
|
||||||
|
taskSendZpMessage(ztTask.getId(), oldAssignTo, ztTask.getAssignedTo());
|
||||||
|
|
||||||
actionService.addAction(ActionType.RW, ActionStatus.FP, ztTask.getId()
|
actionService.addAction(ActionType.RW, ActionStatus.FP, ztTask.getId()
|
||||||
, projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
, projectproduct == null ? null : projectproduct.getProduct().toString(), projectproduct == null ? null : projectproduct.getProject(), ztTask.getExecution(),
|
||||||
|
@ -52,27 +52,27 @@ file:
|
|||||||
#
|
#
|
||||||
#file:
|
#file:
|
||||||
# baseUrl: http://127.0.0.1:8085
|
# baseUrl: http://127.0.0.1:8085
|
||||||
#vx:
|
|
||||||
# agentld: 1000002
|
|
||||||
# token: DGkygyJELpIY2
|
|
||||||
# encodingAesKey: Pp2D1vttrxVMoTzocD1SukkRe3IYXQjW5nuOjvc2JRE
|
|
||||||
# receiveid: ww0b2dc90421854148
|
|
||||||
# corpid: ww0b2dc90421854148
|
|
||||||
# corpsecret: LRVwfc11K-JQS2nJC8xTPrZLBKmMRZ7nPyGchsVfKF4
|
|
||||||
# salaryCorpsecretApp: biYcz9e1gIJSsAaTgCZXbcO8Vh9YT11JtaFeZPaPmtU
|
|
||||||
# salaryCorpsecretAppUrl: https://qyapi.weixin.qq.com/cgi-bin/message/send
|
|
||||||
# dkcorpsecret: biYcz9e1gIJSsAaTgCZXbcO8Vh9YT11JtaFeZPaPmtU #书籍
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
vx:
|
vx:
|
||||||
agentld: 1000059
|
agentld: 1000002
|
||||||
token: vTniTyOG4csBmAnMr
|
token: DGkygyJELpIY2
|
||||||
encodingAesKey : gCmhw7vKLcZwsDszILPNSEqyjgRKODemkYmRFdfelmk
|
encodingAesKey: Pp2D1vttrxVMoTzocD1SukkRe3IYXQjW5nuOjvc2JRE
|
||||||
receiveid: wwa7cc4743271d6055
|
receiveid: ww0b2dc90421854148
|
||||||
corpid: wwa7cc4743271d6055
|
corpid: ww0b2dc90421854148
|
||||||
corpsecret: qQNdRmtanymbshPOLgWTgB-TzX9QmNpVCpOx5suJ2xA
|
corpsecret: LRVwfc11K-JQS2nJC8xTPrZLBKmMRZ7nPyGchsVfKF4
|
||||||
dkCorpsecret: 1MWQxoL8QtypfdnKJqdo3pGdZDAmdhqTF_MaWm3rVjs
|
salaryCorpsecretApp: biYcz9e1gIJSsAaTgCZXbcO8Vh9YT11JtaFeZPaPmtU
|
||||||
salaryCorpsecretApp: BsgdcmLV5L1jbO7uro9QqdgGQaGItVb_tvfaasAq_3w
|
|
||||||
salaryCorpsecretAppUrl: https://qyapi.weixin.qq.com/cgi-bin/message/send
|
salaryCorpsecretAppUrl: https://qyapi.weixin.qq.com/cgi-bin/message/send
|
||||||
dkcorpsecret: 1MWQxoL8QtypfdnKJqdo3pGdZDAmdhqTF_MaWm3rVjs
|
dkcorpsecret: biYcz9e1gIJSsAaTgCZXbcO8Vh9YT11JtaFeZPaPmtU #书籍
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#vx:
|
||||||
|
# agentld: 1000059
|
||||||
|
# token: vTniTyOG4csBmAnMr
|
||||||
|
# encodingAesKey : gCmhw7vKLcZwsDszILPNSEqyjgRKODemkYmRFdfelmk
|
||||||
|
# receiveid: wwa7cc4743271d6055
|
||||||
|
# corpid: wwa7cc4743271d6055
|
||||||
|
# corpsecret: qQNdRmtanymbshPOLgWTgB-TzX9QmNpVCpOx5suJ2xA
|
||||||
|
# dkCorpsecret: 1MWQxoL8QtypfdnKJqdo3pGdZDAmdhqTF_MaWm3rVjs
|
||||||
|
# salaryCorpsecretApp: BsgdcmLV5L1jbO7uro9QqdgGQaGItVb_tvfaasAq_3w
|
||||||
|
# salaryCorpsecretAppUrl: https://qyapi.weixin.qq.com/cgi-bin/message/send
|
||||||
|
# dkcorpsecret: 1MWQxoL8QtypfdnKJqdo3pGdZDAmdhqTF_MaWm3rVjs
|
@ -41,7 +41,24 @@
|
|||||||
<if test="qo.storyId != null ">
|
<if test="qo.storyId != null ">
|
||||||
and s.id = #{qo.storyId}
|
and s.id = #{qo.storyId}
|
||||||
</if>
|
</if>
|
||||||
group by s.id
|
|
||||||
|
|
||||||
|
<choose>
|
||||||
|
<when test="qo.orderName != '' and qo.orderName != null ">
|
||||||
|
<choose>
|
||||||
|
<when test="qo.orderSort != '' and qo.orderSort != null ">
|
||||||
|
order by s.${qo.orderName} ${qo.orderSort}
|
||||||
|
</when>
|
||||||
|
<otherwise>
|
||||||
|
order by s.id desc
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
|
</when>
|
||||||
|
<otherwise>
|
||||||
|
order by s.id desc
|
||||||
|
</otherwise>
|
||||||
|
</choose>
|
||||||
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user