Commit 36abf50f by qwmqiuwenmin

Merge branch 'developer' of http://115.159.76.241/haoban3.0/haoban-manage3.0.git into developer

parents fa78c12d 25fca1d0
...@@ -75,5 +75,11 @@ public interface StaffClerkRelationApiService { ...@@ -75,5 +75,11 @@ public interface StaffClerkRelationApiService {
* @return * @return
*/ */
StaffClerkRelationDTO getByClerkId(String clerkId); StaffClerkRelationDTO getByClerkId(String clerkId);
/**
* 删除关联关系
* @param clerkId
*/
void delByClerkId(String clerkId);
} }
...@@ -74,4 +74,6 @@ public interface TabHaobanStaffClerkRelationMapper { ...@@ -74,4 +74,6 @@ public interface TabHaobanStaffClerkRelationMapper {
TabHaobanStaffClerkRelation getByClerkId(@Param("clerkId")String clerkId); TabHaobanStaffClerkRelation getByClerkId(@Param("clerkId")String clerkId);
int delByPrimaryKey(@Param("staffClerkRelationId")String staffClerkRelationId); int delByPrimaryKey(@Param("staffClerkRelationId")String staffClerkRelationId);
void delByClerkId(@Param("clerkId")String clerkId);
} }
\ No newline at end of file
...@@ -243,6 +243,8 @@ public class AuditApiServiceImpl implements AuditApiService{ ...@@ -243,6 +243,8 @@ public class AuditApiServiceImpl implements AuditApiService{
if(org.apache.commons.lang.StringUtils.isNotBlank(batchId)){ if(org.apache.commons.lang.StringUtils.isNotBlank(batchId)){
insertBatchLog( batchId,AuditRsultType.success.getCode(),tab); insertBatchLog( batchId,AuditRsultType.success.getCode(),tab);
} }
staffClerkRelationApiService.delByClerkId(obj.getClerkId());
staffDepartmentRelatedApiService.sendClerkDel(obj.getClerkName(), obj.getClerkCode(),tab.getCommitStoreId(), 1, ""); staffDepartmentRelatedApiService.sendClerkDel(obj.getClerkName(), obj.getClerkCode(),tab.getCommitStoreId(), 1, "");
}else if(auditType == AuditType.CLERK_UNBIND.getCode()){ }else if(auditType == AuditType.CLERK_UNBIND.getCode()){
//解绑申请,无需审核,直接通过 //解绑申请,无需审核,直接通过
...@@ -281,7 +283,7 @@ public class AuditApiServiceImpl implements AuditApiService{ ...@@ -281,7 +283,7 @@ public class AuditApiServiceImpl implements AuditApiService{
staffDepartmentRelatedApiService.sendClerkAdd(enterpriseId, obj.getClerkCode(), 2, auditReason); staffDepartmentRelatedApiService.sendClerkAdd(enterpriseId, obj.getClerkCode(), 2, auditReason);
}else if(auditType == AuditType.CLERK_DEL.getCode()) { }else if(auditType == AuditType.CLERK_DEL.getCode()) {
AuditStaffDTO obj = JSONObject.parseObject(oldValue,AuditStaffDTO.class); AuditStaffDTO obj = JSONObject.parseObject(oldValue,AuditStaffDTO.class);
staffDepartmentRelatedApiService.sendClerkDel(obj.getClerkName(), obj.getClerkCode(),tab.getCommitStoreId(), 2, auditReason); staffDepartmentRelatedApiService.sendClerkDel(obj.getClerkName(), obj.getClerkCode(),tab2.getCommitStoreId(), 2, auditReason);
} }
} }
@Override @Override
......
...@@ -84,6 +84,10 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -84,6 +84,10 @@ public class MessageApiServiceImpl implements MessageApiService {
@Override @Override
public void gicMessageReceive(GicMessageDTO gicMessageDTO) { public void gicMessageReceive(GicMessageDTO gicMessageDTO) {
if (true) {
log.info("好办3.0去除消息监听");
return;
}
GicMQClient clientInstance = GICMQClientUtil.getClientInstance(); GicMQClient clientInstance = GICMQClientUtil.getClientInstance();
try { try {
log.info("发送消息到dealGicMessageMq,{}", JSON.toJSONString(gicMessageDTO)); log.info("发送消息到dealGicMessageMq,{}", JSON.toJSONString(gicMessageDTO));
...@@ -193,6 +197,10 @@ public class MessageApiServiceImpl implements MessageApiService { ...@@ -193,6 +197,10 @@ public class MessageApiServiceImpl implements MessageApiService {
@Override @Override
public void dealWxMessage(String param) { public void dealWxMessage(String param) {
if (true) {
log.info("不出发更新企业微信变更");
return;
}
QywxCallBackDTO dto = JSON.parseObject(param, QywxCallBackDTO.class); QywxCallBackDTO dto = JSON.parseObject(param, QywxCallBackDTO.class);
log.info("【处理微信回调】dto={}",JSON.toJSONString(param)); log.info("【处理微信回调】dto={}",JSON.toJSONString(param));
if(dto != null){ if(dto != null){
......
...@@ -211,4 +211,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe ...@@ -211,4 +211,8 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
staffClerkRelatinService.insert(staffClerkRelation); staffClerkRelatinService.insert(staffClerkRelation);
} }
} }
@Override
public void delByClerkId(String clerkId) {
tabHaobanStaffClerkRelationMapper.delByClerkId(clerkId);
}
} }
...@@ -297,6 +297,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela ...@@ -297,6 +297,7 @@ public class StaffDepartmentRelatedApiServiceImpl implements StaffDepartmentRela
ClerkDTO gicClerk = clerkService.getClerkLeaderByStoreId(storeId); ClerkDTO gicClerk = clerkService.getClerkLeaderByStoreId(storeId);
if(gicClerk == null){ if(gicClerk == null){
logger.info("店长不存在,发送消息失败{}",storeId); logger.info("店长不存在,发送消息失败{}",storeId);
return ;
} }
TabHaobanStaffClerkRelation tab = tabHaobanStaffClerkRelationMapper.getOneByClerkId(gicClerk.getClerkId()); TabHaobanStaffClerkRelation tab = tabHaobanStaffClerkRelationMapper.getOneByClerkId(gicClerk.getClerkId());
if(tab == null){ if(tab == null){
......
...@@ -389,8 +389,8 @@ ...@@ -389,8 +389,8 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_haoban_audit from tab_haoban_audit
where 1=1 where
and commit_store_id = #{storeId,jdbcType=VARCHAR} commit_store_id = #{storeId,jdbcType=VARCHAR}
and status_flag = 1 and status_flag = 1
<if test="auditType == null || auditType == -1"> <if test="auditType == null || auditType == -1">
and audit_type in (2,3,4,5) and audit_type in (2,3,4,5)
...@@ -409,8 +409,8 @@ ...@@ -409,8 +409,8 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_haoban_audit from tab_haoban_audit
where 1=1 where
and status_flag = 1 status_flag = 1
and related_Id = #{relatedId} and related_Id = #{relatedId}
and audit_type = #{auditType} and audit_type = #{auditType}
and audit_status = 0 and audit_status = 0
...@@ -420,8 +420,8 @@ ...@@ -420,8 +420,8 @@
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
from tab_haoban_audit from tab_haoban_audit
where 1=1 where
and status_flag = 1 status_flag = 1
and audit_type = 3 and audit_type = 3
and audit_status = 0 and audit_status = 0
and enterprise_id = #{enterpriseId,jdbcType=VARCHAR} and enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
......
...@@ -320,4 +320,13 @@ ...@@ -320,4 +320,13 @@
and status_flag =1 and status_flag =1
</update> </update>
<update id="delByClerkId" >
update tab_haoban_staff_clerk_relation
set
status_flag = 0,
update_time = now()
where clerk_id = #{clerkId,jdbcType=VARCHAR}
and status_flag =1
</update>
</mapper> </mapper>
\ No newline at end of file
...@@ -321,6 +321,10 @@ public class StaffController extends WebBaseController{ ...@@ -321,6 +321,10 @@ public class StaffController extends WebBaseController{
if (hasRelationClerkIds.contains(clerkInfoVo.getClerkId())) { if (hasRelationClerkIds.contains(clerkInfoVo.getClerkId())) {
clerkInfoVo.setRelationStatus(1); clerkInfoVo.setRelationStatus(1);
} }
StoreDTO store = storeService.getStore(clerkInfoVo.getStoreId());
if (null != store) {
clerkInfoVo.setStoreName(store.getStoreName());
}
}); });
} }
......
...@@ -11,8 +11,44 @@ public class ClerkInfoVo implements Serializable { ...@@ -11,8 +11,44 @@ public class ClerkInfoVo implements Serializable {
private String clerkName; private String clerkName;
private String clerkCode; private String clerkCode;
private String clerkId; private String clerkId;
private String enterpriseName;
private String enterpriseId;
private String storeId;
private String storeName;
private Integer relationStatus=0; private Integer relationStatus=0;
public String getStoreId() {
return storeId;
}
public void setStoreId(String storeId) {
this.storeId = storeId;
}
public String getStoreName() {
return storeName;
}
public void setStoreName(String storeName) {
this.storeName = storeName;
}
public String getEnterpriseName() {
return enterpriseName;
}
public void setEnterpriseName(String enterpriseName) {
this.enterpriseName = enterpriseName;
}
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
public String getClerkName() { public String getClerkName() {
return clerkName; return clerkName;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment