|
|
@@ -249,9 +249,11 @@ public class CwWorkClientService extends ServiceImpl<CwWorkClientBaseMapper, CwW
|
|
|
String no = SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialNum(userDTO.getCompanyDTO().getId(), CwWorkClientBaseDTO.BIZ_CODE,TokenProvider.getCurrentToken());
|
|
|
cwWorkClientBase.setNo(no);
|
|
|
cwWorkClientBase.setUpdateUser(userDTO.getId());
|
|
|
- cwWorkClientBase.setStatus("0");
|
|
|
+ cwWorkClientBase.setStatus("5");
|
|
|
}
|
|
|
}
|
|
|
+ UserDTO userDTO = SpringUtil.getBean ( IUserApi.class ).getByToken(TokenProvider.getCurrentToken());
|
|
|
+ cwWorkClientBase.setUpdateUser(userDTO.getId());
|
|
|
this.saveOrUpdate(cwWorkClientBase);
|
|
|
if (ObjectUtil.isNotEmpty(cwWorkClientBaseDTO)) {
|
|
|
// 附件
|
|
|
@@ -392,6 +394,17 @@ public class CwWorkClientService extends ServiceImpl<CwWorkClientBaseMapper, CwW
|
|
|
return "操作成功";
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新客户拥有人
|
|
|
+ * @param cwWorkClientBaseDTO
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ public String updateUpdateUserById(CwWorkClientBaseDTO cwWorkClientBaseDTO) {
|
|
|
+ CwWorkClientBase cwWorkClientBase = CwWorkClientBaseWrapper.INSTANCE.toEntity(cwWorkClientBaseDTO);
|
|
|
+ cwWorkClientBaseMapper.update(cwWorkClientBase, new QueryWrapper<CwWorkClientBase>().lambda().eq(CwWorkClientBase::getId, cwWorkClientBase.getId()));
|
|
|
+ return "操作成功";
|
|
|
+ }
|
|
|
+
|
|
|
// 其他人发起修改申请
|
|
|
public synchronized ResponseEntity<Map<String,String>> pushUpdate(String id) {
|
|
|
CwWorkClientBaseDTO cwWorkClientBaseDTO = this.queryById(id);
|