1.派遣记录接口修改
2.新增从业记录批量新增修改接口
3.系统菜单接口修改,将 大写MODE 修改为小写
| | |
| | | private String dispatcherUnitId; |
| | | |
| | | |
| | | /** |
| | | * 派遣保安ids |
| | | */ |
| | | @TableField("user_ids") |
| | | private String userIds; |
| | | |
| | | } |
| | |
| | | <result column="dispatcher" property="dispatcher"/> |
| | | <result column="dispatcherTime" property="dispatchertime"/> |
| | | <result column="dispatcherAddress" property="dispatcheraddress"/> |
| | | <result column="dispatchercompany" property="dispatchercompany"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <!-- <select id="selectDispatcherPage" resultMap="dispatcherResultMap">--> |
| | | <!-- select * from sys_dispatcher where is_deleted = 0--> |
| | | <!-- </select>--> |
| | | |
| | | <!--派遣记录分页数据--> |
| | | <select id="selectDispatcherPage" resultType="org.springblade.modules.dispatcher.vo.DispatcherVO"> |
| | |
| | | on |
| | | sdu.id = sd.dispatcher_unit_id |
| | | where 1=1 |
| | | <if test="dispatcher.dispatcherUnitId!=null"> |
| | | and sd.dispatcher_unit_id = #{dispatcher.dispatcherUnitId} |
| | | </if> |
| | | <if test="dispatcher.name!=null and dispatcher.name!=''"> |
| | | and sd.name like concat('%', #{dispatcher.name},'%') |
| | | </if> |
| | |
| | | */ |
| | | package org.springblade.modules.experience.controller; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 控制器 |
| | | * 用户从业控制器 |
| | | * |
| | | * @author BladeX |
| | | * @since 2021-07-08 |
| | |
| | | return R.status(experienceService.save(experience)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增或修改 |
| | | */ |
| | | @PostMapping("/saveOrUpdate") |
| | | public R save(@Valid @RequestBody Map<String,Object> experience ) { |
| | | String cardid = experience.get("cardid").toString(); |
| | | //先删除原有的从业信息 |
| | | experienceService.delbyCardId(cardid); |
| | | //重新新增从业信息 |
| | | List<Experience> experiences = (List<Experience>)experience.get("userPractitionersInfo"); |
| | | int count = 0; |
| | | if (experiences.size()>0){ |
| | | for(int i = 0;i<experiences.size();i++){ |
| | | Experience e = JSON.parseObject(JSON.toJSONString(experiences.get(i)),Experience.class); |
| | | experienceService.save(e); |
| | | count++; |
| | | } |
| | | if(count<1){ |
| | | return R.status(false); |
| | | } |
| | | } |
| | | return R.status(true); |
| | | } |
| | | |
| | | /** |
| | | * 修改 |
| | | */ |
| | |
| | | * @param cardid 身份证 |
| | | * @return |
| | | */ |
| | | @PostMapping("/selectExperienceInfo") |
| | | @GetMapping("/selectExperienceInfo") |
| | | public R selectExperienceInfo(String cardid) { |
| | | return R.data(experienceService.selectExperienceInfo(cardid)); |
| | | } |
| | |
| | | */ |
| | | @ApiModelProperty(value = "公司名称") |
| | | private String companyname; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | |
| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springblade.modules.experience.entity.Experience; |
| | | import org.springblade.modules.experience.vo.ExperienceVO; |
| | | |
| | |
| | | */ |
| | | List<ExperienceVO> selectExperiencePage(IPage page, ExperienceVO experience); |
| | | List<Map<Object,String>> selectExperienceInfo(String cardid); |
| | | |
| | | /** |
| | | * 根据 cardid 删除行业信息 |
| | | * @param cardid 身份证号 |
| | | */ |
| | | void delbyCardId(@Param("cardid") String cardid); |
| | | } |
| | |
| | | select * from sys_experience where cardId=#{cardid} |
| | | </select> |
| | | |
| | | <!--根据 cardid 删除行业信息--> |
| | | <delete id="delbyCardId"> |
| | | delete from sys_experience where cardId=#{cardid} |
| | | </delete> |
| | | |
| | | </mapper> |
| | |
| | | */ |
| | | IPage<ExperienceVO> selectExperiencePage(IPage<ExperienceVO> page, ExperienceVO experience); |
| | | List<Map<Object,String>> selectExperienceInfo(String cardid); |
| | | |
| | | /** |
| | | * 根据 cardid 删除行业信息 |
| | | * @param cardid 身份证号 |
| | | */ |
| | | void delbyCardId(String cardid); |
| | | } |
| | |
| | | return baseMapper.selectExperienceInfo(cardid); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据 cardid 删除行业信息 |
| | | * @param cardid 身份证号 |
| | | */ |
| | | @Override |
| | | public void delbyCardId(String cardid) { |
| | | baseMapper.delbyCardId(cardid); |
| | | } |
| | | } |
| | |
| | | import org.springblade.core.launch.constant.AppConstant; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.secure.BladeUser; |
| | | import org.springblade.core.secure.annotation.PreAuth; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.constant.RoleConstant; |
| | | import org.springblade.core.tool.support.Kv; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.system.entity.Menu; |
| | |
| | | import org.springblade.modules.system.wrapper.MenuWrapper; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import static org.springblade.core.cache.constant.CacheConstant.MENU_CACHE; |
| | | |
| | | /** |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ColumnWidth(15) |
| | | @ExcelProperty("租户编号") |
| | | @ExcelProperty("保安单位编号") |
| | | private String tenantId; |
| | | |
| | | @ExcelIgnore |
| | |
| | | SELECT |
| | | id, |
| | | parent_id, |
| | | NAME AS title, |
| | | name AS title, |
| | | id AS "value", |
| | | id AS "key" |
| | | FROM |
| | |
| | | SELECT |
| | | id, |
| | | parent_id, |
| | | NAME AS title, |
| | | name AS title, |
| | | id AS "value", |
| | | id AS "key" |
| | | FROM |
| | |
| | | SELECT |
| | | id, |
| | | parent_id, |
| | | NAME AS title, |
| | | name AS title, |
| | | id AS "value", |
| | | id AS "key" |
| | | FROM |
| | |
| | | SELECT |
| | | id, |
| | | parent_id, |
| | | NAME AS title, |
| | | name AS title, |
| | | id AS "value", |
| | | id AS "key" |
| | | FROM |