|
@@ -84,7 +84,7 @@ public class PersManageAction implements IMINAction {
|
|
@MINAction(value = PERSON_QUERY)
|
|
@MINAction(value = PERSON_QUERY)
|
|
public MINActionResult personQuery(
|
|
public MINActionResult personQuery(
|
|
@MINParam(key = "page", defaultValue = "1") int page,
|
|
@MINParam(key = "page", defaultValue = "1") int page,
|
|
- @MINParam(key = "limit", defaultValue = "3") int limit,
|
|
|
|
|
|
+ @MINParam(key = "limit", defaultValue = "10") int limit,
|
|
@MINParam(key = "dates") String dates,
|
|
@MINParam(key = "dates") String dates,
|
|
@MINParam(key = "perName") String perName,
|
|
@MINParam(key = "perName") String perName,
|
|
@MINParam(key = "state") String state,
|
|
@MINParam(key = "state") String state,
|
|
@@ -101,7 +101,7 @@ public class PersManageAction implements IMINAction {
|
|
p.put("dates", dates); // 创建日期
|
|
p.put("dates", dates); // 创建日期
|
|
p.put("perName", perName); //用户名称
|
|
p.put("perName", perName); //用户名称
|
|
p.put("state", state); //状态
|
|
p.put("state", state); //状态
|
|
- if(!u.getBranchId().equals(Constant.ADMINISTRATION_SYSTEM_NUMBER)){
|
|
|
|
|
|
+ if(!Constant.ADMINISTRATION_SYSTEM_NUMBER.equals(u.getBranchId())){
|
|
p.put("branchId", u.getBranchId());
|
|
p.put("branchId", u.getBranchId());
|
|
}
|
|
}
|
|
p.put("channel", u.getChannel());//渠道
|
|
p.put("channel", u.getChannel());//渠道
|
|
@@ -132,18 +132,33 @@ public class PersManageAction implements IMINAction {
|
|
@MINAction(value = PERSON_CANCELLATION)
|
|
@MINAction(value = PERSON_CANCELLATION)
|
|
public MINActionResult personCancellation(
|
|
public MINActionResult personCancellation(
|
|
MINSession session,
|
|
MINSession session,
|
|
- @MINParam(key = "id") String id
|
|
|
|
|
|
+ @MINParam(key = "id") String id,
|
|
|
|
+ @MINParam(key = "riId") String riId
|
|
) throws MINBusinessException {
|
|
) throws MINBusinessException {
|
|
//获取当前用户
|
|
//获取当前用户
|
|
User user = session.getUser();
|
|
User user = session.getUser();
|
|
MINActionResult res = new MINActionResult();
|
|
MINActionResult res = new MINActionResult();
|
|
|
|
+ //用户基本信息
|
|
VmPersonInf ps = new VmPersonInf();
|
|
VmPersonInf ps = new VmPersonInf();
|
|
- ps.setId(id);
|
|
|
|
- ps.setStatus("01");//冻结
|
|
|
|
- ps.setModifyTime(DateUtil.getCurrentDateTimeString());//修改时间
|
|
|
|
- ps.setModifyUser(session.getUser().getId()); //修改人
|
|
|
|
|
|
+ ps.setId(id);
|
|
|
|
+ ps.setStatus("01");//冻结
|
|
|
|
+ ps.setModifyTime(DateUtil.getCurrentDateTimeString());//修改时间
|
|
|
|
+ ps.setModifyUser(session.getUser().getId()); //修改人
|
|
Service.lookup(IMINDataBaseService.class)
|
|
Service.lookup(IMINDataBaseService.class)
|
|
.getMybatisMapper(VmPersonInfMapper.class).updateByPrimaryKeySelective(ps);
|
|
.getMybatisMapper(VmPersonInfMapper.class).updateByPrimaryKeySelective(ps);
|
|
|
|
+ //关联表
|
|
|
|
+ VmPersonRoleInf pi = new VmPersonRoleInf();
|
|
|
|
+ pi.setState("01");
|
|
|
|
+ pi.setId(riId);
|
|
|
|
+ //条件
|
|
|
|
+// VmPersonRoleInfExample pe = new VmPersonRoleInfExample();
|
|
|
|
+// pe.createCriteria().andPersonIdEqualTo(id);
|
|
|
|
+// //更新状态
|
|
|
|
+// Service.lookup(IMINDataBaseService.class)
|
|
|
|
+// .getMybatisMapper(VmPersonRoleInfMapper.class).updateByExampleSelective(pi, pe);
|
|
|
|
+ Service.lookup(IMINDataBaseService.class)
|
|
|
|
+ .getMybatisMapper(VmPersonRoleInfMapper.class).updateByPrimaryKeySelective(pi);
|
|
|
|
+
|
|
String logInfo = "操作员:"+user.getName()+",注销用户,id:"+id;
|
|
String logInfo = "操作员:"+user.getName()+",注销用户,id:"+id;
|
|
Service.lookup(ILogService.class).logging(session, logInfo);
|
|
Service.lookup(ILogService.class).logging(session, logInfo);
|
|
return res;
|
|
return res;
|
|
@@ -159,18 +174,32 @@ public class PersManageAction implements IMINAction {
|
|
@MINAction(value = PERSON_THAW)
|
|
@MINAction(value = PERSON_THAW)
|
|
public MINActionResult personThaw(
|
|
public MINActionResult personThaw(
|
|
MINSession session,
|
|
MINSession session,
|
|
- @MINParam(key = "id") String id
|
|
|
|
|
|
+ @MINParam(key = "id") String id,
|
|
|
|
+ @MINParam(key = "riId") String riId
|
|
) throws MINBusinessException {
|
|
) throws MINBusinessException {
|
|
//获取当前用户
|
|
//获取当前用户
|
|
User user = session.getUser();
|
|
User user = session.getUser();
|
|
MINActionResult res = new MINActionResult();
|
|
MINActionResult res = new MINActionResult();
|
|
VmPersonInf ps = new VmPersonInf();
|
|
VmPersonInf ps = new VmPersonInf();
|
|
- ps.setId(id);
|
|
|
|
- ps.setStatus("00");//正常
|
|
|
|
- ps.setModifyTime(DateUtil.getCurrentDateTimeString());//修改时间
|
|
|
|
- ps.setModifyUser(session.getUser().getId()); //修改人
|
|
|
|
|
|
+ ps.setId(id);
|
|
|
|
+ ps.setStatus("00");//正常
|
|
|
|
+ ps.setModifyTime(DateUtil.getCurrentDateTimeString());//修改时间
|
|
|
|
+ ps.setModifyUser(session.getUser().getId()); //修改人
|
|
Service.lookup(IMINDataBaseService.class)
|
|
Service.lookup(IMINDataBaseService.class)
|
|
.getMybatisMapper(VmPersonInfMapper.class).updateByPrimaryKeySelective(ps);
|
|
.getMybatisMapper(VmPersonInfMapper.class).updateByPrimaryKeySelective(ps);
|
|
|
|
+ //关联表
|
|
|
|
+ VmPersonRoleInf pi = new VmPersonRoleInf();
|
|
|
|
+ pi.setState("00");
|
|
|
|
+ pi.setId(riId);
|
|
|
|
+// //条件
|
|
|
|
+// VmPersonRoleInfExample pe = new VmPersonRoleInfExample();
|
|
|
|
+// pe.createCriteria().andPersonIdEqualTo(id);
|
|
|
|
+// //更新状态
|
|
|
|
+// Service.lookup(IMINDataBaseService.class)
|
|
|
|
+// .getMybatisMapper(VmPersonRoleInfMapper.class).updateByExampleSelective(pi, pe);
|
|
|
|
+ Service.lookup(IMINDataBaseService.class)
|
|
|
|
+ .getMybatisMapper(VmPersonRoleInfMapper.class).updateByPrimaryKeySelective(pi);
|
|
|
|
+
|
|
String logInfo = "操作员:"+user.getName()+",解冻用户,id:"+id;
|
|
String logInfo = "操作员:"+user.getName()+",解冻用户,id:"+id;
|
|
Service.lookup(ILogService.class).logging(session, logInfo);
|
|
Service.lookup(ILogService.class).logging(session, logInfo);
|
|
return res;
|
|
return res;
|