| | |
| | | package com.java110.dto.complaintType; |
| | | |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.complaintTypeUser.ComplaintTypeUserDto; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @ClassName FloorDto |
| | |
| | | private String communityId; |
| | | private String appraiseReply; |
| | | |
| | | private List<ComplaintTypeUserDto> staffs; |
| | | |
| | | |
| | | private Date createTime; |
| | | |
| | |
| | | public String getTypeCd() { |
| | | return typeCd; |
| | | } |
| | | |
| | | public void setTypeCd(String typeCd) { |
| | | this.typeCd = typeCd; |
| | | } |
| | | |
| | | public String getTypeName() { |
| | | return typeName; |
| | | } |
| | | |
| | | public void setTypeName(String typeName) { |
| | | this.typeName = typeName; |
| | | } |
| | | |
| | | public String getNotifyWay() { |
| | | return notifyWay; |
| | | } |
| | | |
| | | public void setNotifyWay(String notifyWay) { |
| | | this.notifyWay = notifyWay; |
| | | } |
| | | |
| | | public String getRemark() { |
| | | return remark; |
| | | } |
| | | |
| | | public void setRemark(String remark) { |
| | | this.remark = remark; |
| | | } |
| | | |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | |
| | | public String getAppraiseReply() { |
| | | return appraiseReply; |
| | | } |
| | | |
| | | public void setAppraiseReply(String appraiseReply) { |
| | | this.appraiseReply = appraiseReply; |
| | | } |
| | |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | |
| | | public List<ComplaintTypeUserDto> getStaffs() { |
| | | return staffs; |
| | | } |
| | | |
| | | public void setStaffs(List<ComplaintTypeUserDto> staffs) { |
| | | this.staffs = staffs; |
| | | } |
| | | } |
| | |
| | | package com.java110.dto.complaintTypeUser; |
| | | |
| | | import com.java110.dto.PageDto; |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | |
| | |
| | | public class ComplaintTypeUserDto extends PageDto implements Serializable { |
| | | |
| | | private String typeCd; |
| | | private String[] typeCds; |
| | | private String typeUserId; |
| | | private String staffName; |
| | | private String communityId; |
| | |
| | | public String getTypeCd() { |
| | | return typeCd; |
| | | } |
| | | |
| | | public void setTypeCd(String typeCd) { |
| | | this.typeCd = typeCd; |
| | | } |
| | | |
| | | public String getTypeUserId() { |
| | | return typeUserId; |
| | | } |
| | | |
| | | public void setTypeUserId(String typeUserId) { |
| | | this.typeUserId = typeUserId; |
| | | } |
| | | |
| | | public String getStaffName() { |
| | | return staffName; |
| | | } |
| | | |
| | | public void setStaffName(String staffName) { |
| | | this.staffName = staffName; |
| | | } |
| | | |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | |
| | | public String getStaffId() { |
| | | return staffId; |
| | | } |
| | | |
| | | public void setStaffId(String staffId) { |
| | | this.staffId = staffId; |
| | | } |
| | |
| | | public void setStatusCd(String statusCd) { |
| | | this.statusCd = statusCd; |
| | | } |
| | | |
| | | public String[] getTypeCds() { |
| | | return typeCds; |
| | | } |
| | | |
| | | public void setTypeCds(String[] typeCds) { |
| | | this.typeCds = typeCds; |
| | | } |
| | | } |
| | |
| | | <mapper namespace="complaintTypeUserV1ServiceDaoImpl"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 保存投诉类型员工信息 add by wuxw 2018-07-03 --> |
| | | <insert id="saveComplaintTypeUserInfo" parameterType="Map"> |
| | | insert into complaint_type_user( |
| | |
| | | </insert> |
| | | |
| | | |
| | | |
| | | <!-- 查询投诉类型员工信息 add by wuxw 2018-07-03 --> |
| | | <select id="getComplaintTypeUserInfo" parameterType="Map" resultType="Map"> |
| | | select t.type_cd,t.type_cd typeCd,t.type_user_id,t.type_user_id typeUserId,t.staff_name,t.staff_name staffName,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.staff_id,t.staff_id staffId |
| | | select t.type_cd,t.type_cd typeCd,t.type_user_id,t.type_user_id typeUserId,t.staff_name,t.staff_name |
| | | staffName,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id communityId,t.staff_id,t.staff_id |
| | | staffId |
| | | from complaint_type_user t |
| | | where 1 =1 |
| | | <if test="typeCd !=null and typeCd != ''"> |
| | | and t.type_cd= #{typeCd} |
| | | </if> |
| | | <if test="typeCds !=null "> |
| | | and t.type_cd in |
| | | <foreach collection="typeCds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="typeUserId !=null and typeUserId != ''"> |
| | | and t.type_user_id= #{typeUserId} |
| | |
| | | </select> |
| | | |
| | | |
| | | |
| | | |
| | | <!-- 修改投诉类型员工信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateComplaintTypeUserInfo" parameterType="Map"> |
| | | update complaint_type_user t set t.status_cd = #{statusCd} |
| | | <if test="newBId != null and newBId != ''"> |
| | | ,t.b_id = #{newBId} |
| | | </if> |
| | | <if test="typeCd !=null and typeCd != ''"> |
| | | , t.type_cd= #{typeCd} |
| | | </if> |
| | | |
| | | <if test="staffName !=null and staffName != ''"> |
| | | , t.staff_name= #{staffName} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | <if test="staffId !=null and staffId != ''"> |
| | | , t.staff_id= #{staffId} |
| | | </if> |
| | | where 1=1 <if test="typeUserId !=null and typeUserId != ''"> |
| | | where 1=1 |
| | | <if test="typeUserId !=null and typeUserId != ''"> |
| | | and t.type_user_id= #{typeUserId} |
| | | </if> |
| | | <if test="typeCd !=null and typeCd != ''"> |
| | | and t.type_cd= #{typeCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | </update> |
| | |
| | | <if test="typeCd !=null and typeCd != ''"> |
| | | and t.type_cd= #{typeCd} |
| | | </if> |
| | | <if test="typeCds !=null "> |
| | | and t.type_cd in |
| | | <foreach collection="typeCds" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | </if> |
| | | <if test="typeUserId !=null and typeUserId != ''"> |
| | | and t.type_user_id= #{typeUserId} |
| | | </if> |
| | |
| | | <select id="getComplaintTypeInfo" parameterType="Map" resultType="Map"> |
| | | select t.type_cd,t.type_cd typeCd,t.type_name,t.type_name typeName,t.notify_way,t.notify_way |
| | | notifyWay,t.remark,t.status_cd,t.status_cd statusCd,t.community_id,t.community_id |
| | | communityId,t.appraise_reply,t.appraise_reply appraiseReply |
| | | communityId,t.appraise_reply,t.appraise_reply appraiseReply,t.create_time createTime |
| | | from complaint_type t |
| | | where 1 =1 |
| | | <if test="typeCd !=null and typeCd != ''"> |
| | |
| | | <if test="remark !=null and remark != ''"> |
| | | , t.remark= #{remark} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | , t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | <if test="appraiseReply !=null and appraiseReply != ''"> |
| | | , t.appraise_reply= #{appraiseReply} |
| | | </if> |
| | |
| | | <if test="typeCd !=null and typeCd != ''"> |
| | | and t.type_cd= #{typeCd} |
| | | </if> |
| | | <if test="communityId !=null and communityId != ''"> |
| | | and t.community_id= #{communityId} |
| | | </if> |
| | | |
| | | </update> |
| | | |
| | |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.intf.store.IComplaintTypeUserV1InnerServiceSMO; |
| | | import com.java110.intf.store.IComplaintTypeV1InnerServiceSMO; |
| | | import com.java110.po.complaintType.ComplaintTypePo; |
| | | import com.java110.po.complaintTypeUser.ComplaintTypeUserPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | @Autowired |
| | | private IComplaintTypeV1InnerServiceSMO complaintTypeV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IComplaintTypeUserV1InnerServiceSMO complaintTypeUserV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "typeCd", "typeCd不能为空"); |
| | |
| | | throw new CmdException("删除数据失败"); |
| | | } |
| | | |
| | | ComplaintTypeUserPo complaintTypeUserPo = new ComplaintTypeUserPo(); |
| | | complaintTypeUserPo.setTypeCd(complaintTypePo.getTypeCd()); |
| | | complaintTypeUserV1InnerServiceSMOImpl.deleteComplaintTypeUser(complaintTypeUserPo); |
| | | |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.dto.complaintTypeUser.ComplaintTypeUserDto; |
| | | import com.java110.intf.store.IComplaintTypeUserV1InnerServiceSMO; |
| | | import com.java110.intf.store.IComplaintTypeV1InnerServiceSMO; |
| | | import com.java110.po.complaintType.ComplaintTypePo; |
| | | import com.java110.po.complaintTypeUser.ComplaintTypeUserPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.java110.dto.complaintType.ComplaintTypeDto; |
| | | |
| | | import java.util.List; |
| | | import java.util.ArrayList; |
| | | |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.http.HttpStatus; |
| | | import org.slf4j.Logger; |
| | |
| | | @Autowired |
| | | private IComplaintTypeV1InnerServiceSMO complaintTypeV1InnerServiceSMOImpl; |
| | | |
| | | |
| | | @Autowired |
| | | private IComplaintTypeUserV1InnerServiceSMO complaintTypeUserV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | super.validatePageInfo(reqJson); |
| | |
| | | complaintTypeDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | //todo 查询类型员工 |
| | | toQueryStaff(complaintTypeDtos); |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) reqJson.getInteger("row")), count, complaintTypeDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | cmdDataFlowContext.setResponseEntity(responseEntity); |
| | | } |
| | | |
| | | private void toQueryStaff(List<ComplaintTypeDto> complaintTypeDtos) { |
| | | |
| | | if (ListUtil.isNull(complaintTypeDtos)) { |
| | | return; |
| | | } |
| | | |
| | | List<String> typeCds = new ArrayList<>(); |
| | | for (ComplaintTypeDto complaintTypeDto : complaintTypeDtos) { |
| | | typeCds.add(complaintTypeDto.getTypeCd()); |
| | | } |
| | | |
| | | ComplaintTypeUserDto complaintTypeUserDto = new ComplaintTypeUserDto(); |
| | | complaintTypeUserDto.setTypeCds(typeCds.toArray(new String[typeCds.size()])); |
| | | |
| | | List<ComplaintTypeUserDto> complaintTypeUserDtos = complaintTypeUserV1InnerServiceSMOImpl.queryComplaintTypeUsers(complaintTypeUserDto); |
| | | |
| | | if (ListUtil.isNull(complaintTypeUserDtos)) { |
| | | return; |
| | | } |
| | | List<ComplaintTypeUserDto> staffs = null; |
| | | for (ComplaintTypeDto complaintTypeDto : complaintTypeDtos) { |
| | | staffs = new ArrayList<>(); |
| | | for(ComplaintTypeUserDto complaintTypeUserDto1 : complaintTypeUserDtos){ |
| | | if(complaintTypeDto.getTypeCd().equals(complaintTypeUserDto1.getTypeCds())){ |
| | | staffs.add(complaintTypeUserDto1); |
| | | } |
| | | } |
| | | complaintTypeDto.setStaffs(staffs); |
| | | } |
| | | |
| | | } |
| | | } |
| File was renamed from service-store/src/main/java/com/java110/store/cmd/complaintTypeUser/ListComplaintTypeUserCmd.java |
| | |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | */ |
| | | package com.java110.store.cmd.complaintTypeUser; |
| | | package com.java110.store.cmd.complaintType; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | | import com.java110.core.context.ICmdDataFlowContext; |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.store.IComplaintTypeUserV1InnerServiceSMO; |
| | | import com.java110.po.complaintTypeUser.ComplaintTypeUserPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | |
| | | * 温馨提示:如果您对此文件进行修改 请不要删除原有作者及注释信息,请补充您的 修改的原因以及联系邮箱如下 |
| | | * // modify by 张三 at 2021-09-12 第10行在某种场景下存在某种bug 需要修复,注释10至20行 加入 20行至30行 |
| | | */ |
| | | @Java110Cmd(serviceCode = "complaintTypeUser.listComplaintTypeUser") |
| | | @Java110Cmd(serviceCode = "complaintType.listComplaintTypeUser") |
| | | public class ListComplaintTypeUserCmd extends Cmd { |
| | | |
| | | private static Logger logger = LoggerFactory.getLogger(ListComplaintTypeUserCmd.class); |
| | |
| | | */ |
| | | package com.java110.store.cmd.complaintType; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.store.IComplaintTypeUserV1InnerServiceSMO; |
| | | import com.java110.intf.store.IComplaintTypeV1InnerServiceSMO; |
| | | import com.java110.po.complaintType.ComplaintTypePo; |
| | | import com.java110.po.complaintTypeUser.ComplaintTypeUserPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | |
| | | @Autowired |
| | | private IComplaintTypeV1InnerServiceSMO complaintTypeV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IComplaintTypeUserV1InnerServiceSMO complaintTypeUserV1InnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * {"typeCd":"","typeName":"123","notifyWay":"WECHAT","appraiseReply":"Y","remark":"123", |
| | | * "staffs":[{"address":"无","age":0,"email":"","initials":"B","levelCd":"01","name":"bbbb","orgId":"842024012258220036","orgLevel":"1", |
| | | * "orgName":"物联网同步物业 / 物联网同步物业","parentOrgId":"-1","parentTwoOrgId":"-1","relCd":"1000","relCdName":"普通员工", |
| | | * "relId":"842024020671010069","sex":"0","storeId":"102024012228150026","tel":"14545456666","userId":"302024020663670065","userName":"bbbb"}], |
| | | * "communityId":"2024012252790005"} |
| | | * |
| | | * @param event 事件对象 |
| | | * @param cmdDataFlowContext 请求报文数据 |
| | | * @param reqJson |
| | | */ |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "typeName", "请求报文中未包含typeName"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "notifyWay", "请求报文中未包含notifyWay"); |
| | | Assert.hasKeyAndValue(reqJson, "appraiseReply", "请求报文中未包含appraiseReply"); |
| | | |
| | | |
| | | JSONArray staffs = reqJson.getJSONArray("staffs"); |
| | | if (ListUtil.isNull(staffs)) { |
| | | throw new CmdException("未包含人员"); |
| | | } |
| | | |
| | | JSONObject staff = null; |
| | | for(int staffIndex = 0;staffIndex < staffs.size(); staffIndex++){ |
| | | staff = staffs.getJSONObject(staffIndex); |
| | | Assert.hasKeyAndValue(staff, "userId", "请求报文中未包含userId"); |
| | | Assert.hasKeyAndValue(staff, "name", "请求报文中未包含userName"); |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | throw new CmdException("保存数据失败"); |
| | | } |
| | | |
| | | JSONArray staffs = reqJson.getJSONArray("staffs"); |
| | | JSONObject staff = null; |
| | | for(int staffIndex = 0;staffIndex < staffs.size(); staffIndex++){ |
| | | staff = staffs.getJSONObject(staffIndex); |
| | | ComplaintTypeUserPo complaintTypeUserPo = new ComplaintTypeUserPo(); |
| | | complaintTypeUserPo.setTypeCd(complaintTypePo.getTypeCd()); |
| | | complaintTypeUserPo.setTypeUserId(GenerateCodeFactory.getGeneratorId(CODE_PREFIX_ID)); |
| | | complaintTypeUserPo.setStaffName(staff.getString("name")); |
| | | complaintTypeUserPo.setCommunityId(complaintTypePo.getCommunityId()); |
| | | complaintTypeUserPo.setStaffId(staff.getString("userId")); |
| | | complaintTypeUserV1InnerServiceSMOImpl.saveComplaintTypeUser(complaintTypeUserPo); |
| | | } |
| | | |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |
| | |
| | | */ |
| | | package com.java110.store.cmd.complaintType; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.core.annotation.Java110Cmd; |
| | | import com.java110.core.annotation.Java110Transactional; |
| | |
| | | import com.java110.core.event.cmd.Cmd; |
| | | import com.java110.core.event.cmd.CmdEvent; |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.intf.store.IComplaintTypeUserV1InnerServiceSMO; |
| | | import com.java110.intf.store.IComplaintTypeV1InnerServiceSMO; |
| | | import com.java110.po.complaintType.ComplaintTypePo; |
| | | import com.java110.po.complaintTypeUser.ComplaintTypeUserPo; |
| | | import com.java110.utils.exception.CmdException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.vo.ResultVo; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.slf4j.Logger; |
| | |
| | | @Autowired |
| | | private IComplaintTypeV1InnerServiceSMO complaintTypeV1InnerServiceSMOImpl; |
| | | |
| | | @Autowired |
| | | private IComplaintTypeUserV1InnerServiceSMO complaintTypeUserV1InnerServiceSMOImpl; |
| | | |
| | | @Override |
| | | public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) { |
| | | Assert.hasKeyAndValue(reqJson, "typeCd", "typeCd不能为空"); |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "communityId不能为空"); |
| | | |
| | | |
| | | JSONArray staffs = reqJson.getJSONArray("staffs"); |
| | | if (ListUtil.isNull(staffs)) { |
| | | throw new CmdException("未包含人员"); |
| | | } |
| | | |
| | | JSONObject staff = null; |
| | | for(int staffIndex = 0;staffIndex < staffs.size(); staffIndex++){ |
| | | staff = staffs.getJSONObject(staffIndex); |
| | | Assert.hasKeyAndValue(staff, "userId", "请求报文中未包含userId"); |
| | | Assert.hasKeyAndValue(staff, "name", "请求报文中未包含userName"); |
| | | |
| | | } |
| | | } |
| | | |
| | | @Override |
| | |
| | | throw new CmdException("更新数据失败"); |
| | | } |
| | | |
| | | ComplaintTypeUserPo complaintTypeUserPo = new ComplaintTypeUserPo(); |
| | | complaintTypeUserPo.setTypeCd(complaintTypePo.getTypeCd()); |
| | | complaintTypeUserV1InnerServiceSMOImpl.deleteComplaintTypeUser(complaintTypeUserPo); |
| | | |
| | | |
| | | JSONArray staffs = reqJson.getJSONArray("staffs"); |
| | | JSONObject staff = null; |
| | | for(int staffIndex = 0;staffIndex < staffs.size(); staffIndex++){ |
| | | staff = staffs.getJSONObject(staffIndex); |
| | | complaintTypeUserPo = new ComplaintTypeUserPo(); |
| | | complaintTypeUserPo.setTypeCd(complaintTypePo.getTypeCd()); |
| | | complaintTypeUserPo.setTypeUserId(GenerateCodeFactory.getGeneratorId("11")); |
| | | complaintTypeUserPo.setStaffName(staff.getString("name")); |
| | | complaintTypeUserPo.setCommunityId(complaintTypePo.getCommunityId()); |
| | | complaintTypeUserPo.setStaffId(staff.getString("userId")); |
| | | complaintTypeUserV1InnerServiceSMOImpl.saveComplaintTypeUser(complaintTypeUserPo); |
| | | } |
| | | |
| | | cmdDataFlowContext.setResponseEntity(ResultVo.success()); |
| | | } |
| | | } |