This commit is contained in:
YY
2025-07-17 10:12:04 +08:00
8 changed files with 639 additions and 2 deletions

View File

@ -78,6 +78,14 @@ public class CoscoType {
public static final String COSCO_SUPPLIER_BASE = "cosco_supplier_base";
//是否为主联系人(0.否、1.是 默认为0 一个供应商只能有一个主联系人 主联系人可接收供应商消息)
public static final Long COSCO_SUPPLIER_USER_TYPE_S = 1l;
public static final Long COSCO_SUPPLIER_USER_TYPE_F = 0l;

View File

@ -0,0 +1,79 @@
package com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.controller;
import com.chinaunicom.mall.ebtp.common.base.controller.BaseController;
import com.chinaunicom.mall.ebtp.common.base.entity.BaseResponse;
import com.chinaunicom.zyhy.ebtp.supplier.base.constant.CoscoType;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.service.ICoscoSupplierUserService;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* 中远海运_供应商_供应商联系人Controller
*
* @author ruoyi
* @date 2025-07-17
*/
@RestController
@RequestMapping("/coscoSupplierUser")
public class CoscoSupplierUserController extends BaseController {
@Autowired
private ICoscoSupplierUserService coscoSupplierUserService;
/**
* 查询中远海运_供应商_供应商联系人列表
*/
@ApiOperation("查询分页数据")
@PostMapping("/getPage")
public BaseResponse page(@ApiParam(value = "对象数据", required = true) @RequestBody CoscoSupplierUser coscoSupplierUser) {
return BaseResponse.success(coscoSupplierUserService.getPage(coscoSupplierUser));
}
/**
* 获取中远海运_供应商_供应商联系人详细信息
*/
@GetMapping(value = "/{id}")
public BaseResponse getInfo(@PathVariable("id") String id) {
return BaseResponse.success(coscoSupplierUserService.selectCoscoSupplierUserById(id));
}
/**
* 新增中远海运_供应商_供应商联系人
*/
@PostMapping(value = "/add")
public BaseResponse add(@RequestBody CoscoSupplierUser coscoSupplierUser) {
return BaseResponse.success(coscoSupplierUserService.insertCoscoSupplierUser(coscoSupplierUser));
}
/**
* 修改中远海运_供应商_供应商联系人
*/
@PostMapping(value = "/edit")
public BaseResponse edit(@RequestBody CoscoSupplierUser coscoSupplierUser) {
return BaseResponse.success(coscoSupplierUserService.updateCoscoSupplierUser(coscoSupplierUser));
}
/**
* 修改中远海运_供应商_供应商联系人
*/
@PostMapping(value = "/editType")
public BaseResponse editType(@RequestBody CoscoSupplierUser coscoSupplierUser) {
return BaseResponse.success(coscoSupplierUserService.updateCoscoSupplierUserType(coscoSupplierUser));
}
/**
* 删除中远海运_供应商_供应商联系人
*/
@DeleteMapping("/{id}")
public BaseResponse remove(@PathVariable String id) {
CoscoSupplierUser coscoSupplierUser = coscoSupplierUserService.selectCoscoSupplierUserById(id);
if(CoscoType.COSCO_SUPPLIER_USER_TYPE_S.equals(coscoSupplierUser.getType())){
return BaseResponse.fail("主联系人不可以删除");
}
return BaseResponse.success(coscoSupplierUserService.deleteCoscoSupplierUserById(id));
}
}

View File

@ -0,0 +1,74 @@
package com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 中远海运_供应商_供应商联系人Mapper接口
*
* @author ruoyi
* @date 2025-07-17
*/
public interface CoscoSupplierUserMapper {
/**
* 查询中远海运_供应商_供应商联系人
*
* @param id 中远海运_供应商_供应商联系人主键
* @return 中远海运_供应商_供应商联系人
*/
public CoscoSupplierUser selectCoscoSupplierUserById(String id);
/**
* 查询中远海运_供应商_供应商联系人列表
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 中远海运_供应商_供应商联系人集合
*/
public List<CoscoSupplierUser> selectCoscoSupplierUserList(CoscoSupplierUser coscoSupplierUser);
public IPage<CoscoSupplierUser> selectCoscoSupplierUserPage(IPage<CoscoSupplierUser> page,@Param("vo") CoscoSupplierUser vo);
/**
* 新增中远海运_供应商_供应商联系人
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 结果
*/
public int insertCoscoSupplierUser(CoscoSupplierUser coscoSupplierUser);
/**
* 修改中远海运_供应商_供应商联系人
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 结果
*/
public int updateCoscoSupplierUser(CoscoSupplierUser coscoSupplierUser);
/**
* 修改主联系人type
* @param coscoSupplierUser
* @return
*/
public int updateCoscoSupplierUserType(CoscoSupplierUser coscoSupplierUser);
/**
* 删除中远海运_供应商_供应商联系人
*
* @param id 中远海运_供应商_供应商联系人主键
* @return 结果
*/
public int deleteCoscoSupplierUserById(String id);
/**
* 批量删除中远海运_供应商_供应商联系人
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteCoscoSupplierUserByIds(String[] ids);
}

View File

@ -0,0 +1,48 @@
package com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity;
import java.util.Date;
import com.chinaunicom.zyhy.ebtp.supplier.common.CoscoBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
/**
* 中远海运_供应商_供应商联系人对象 cosco_supplier_user
*
* @author ruoyi
* @date 2025-07-17
*/
@Data
public class CoscoSupplierUser extends CoscoBaseEntity {
private static final long serialVersionUID = 1L;
/** 主键ID */
private String id;
/** 供应商id(cosco_supplier_base表主键) */
private String supplierId;
/** 账户ID */
private String userId;
/** 联系人姓名 */
private String contactsName;
/** 联系人手机 */
private String contactsPhone;
/** 联系人邮箱 */
private String contactsEmail;
/** 是否为主联系人(0.否、1.是 默认为0 一个供应商只能有一个主联系人 主联系人可接收供应商消息) */
private Long type;
/** 删除标识(normal.正常、deleted.已删除) */
private String delFlag;
/** 最后更新时间 */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date lastUpdateTime;
}

View File

@ -0,0 +1,76 @@
package com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.service;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser;
import java.util.List;
/**
* 中远海运_供应商_供应商联系人Service接口
*
* @author ruoyi
* @date 2025-07-17
*/
public interface ICoscoSupplierUserService {
/**
* 查询中远海运_供应商_供应商联系人
*
* @param id 中远海运_供应商_供应商联系人主键
* @return 中远海运_供应商_供应商联系人
*/
public CoscoSupplierUser selectCoscoSupplierUserById(String id);
/**
* 查询中远海运_供应商_供应商联系人列表
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 中远海运_供应商_供应商联系人集合
*/
public List<CoscoSupplierUser> selectCoscoSupplierUserList(CoscoSupplierUser coscoSupplierUser);
/**
* 分页
* @param coscoSupplierUser
* @return
*/
IPage<CoscoSupplierUser> getPage(CoscoSupplierUser coscoSupplierUser);
/**
* 新增中远海运_供应商_供应商联系人
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 结果
*/
public int insertCoscoSupplierUser(CoscoSupplierUser coscoSupplierUser);
/**
* 修改中远海运_供应商_供应商联系人
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 结果
*/
public int updateCoscoSupplierUser(CoscoSupplierUser coscoSupplierUser);
/**
* 修改主联系人状态
* @param coscoSupplierUser
* @return
*/
public int updateCoscoSupplierUserType(CoscoSupplierUser coscoSupplierUser);
/**
* 批量删除中远海运_供应商_供应商联系人
*
* @param ids 需要删除的中远海运_供应商_供应商联系人主键集合
* @return 结果
*/
public int deleteCoscoSupplierUserByIds(String[] ids);
/**
* 删除中远海运_供应商_供应商联系人信息
*
* @param id 中远海运_供应商_供应商联系人主键
* @return 结果
*/
public int deleteCoscoSupplierUserById(String id);
}

View File

@ -21,6 +21,8 @@ import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.*;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.*;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.service.*;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.vo.SupplierPageVo;
import com.sun.xml.bind.v2.TODO;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.parameters.P;
import org.springframework.stereotype.Service;
@ -44,6 +46,8 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
@Autowired
private CoscoSupplierQualificationsMapper coscoSupplierQualificationsMapper;
@Autowired
private ICoscoSupplierUserService coscoSupplierUserService;
@Autowired
private CoscoSupplierInvoiceMapper coscoSupplierInvoiceMapper;
@ -315,10 +319,23 @@ public class CoscoSupplierBaseServiceImpl extends BaseServiceImpl<CoscoSupplierB
//承诺书、其他附件保存
coscoSupplierSurveyAttachmentsMapper.batchCoscoSupplierSurveyAttachments(coscoSupplierSurveyAttachmentsList);
}
//基本信息新增
CoscoSupplierBase coscoSupplierBase = vo.getCoscoSupplierBase();
//添加联系人表,默认为主联系人
CoscoSupplierUser coscoSupplierUser = new CoscoSupplierUser();
//TODO 调用三方接口同步userId--暂时默认
coscoSupplierUser.setUserId("1");
coscoSupplierUser.setSupplierId(supplierId);
coscoSupplierUser.setContactsName(coscoSupplierBase.getContactsName());
coscoSupplierUser.setContactsPhone(coscoSupplierBase.getContactsPhone());
coscoSupplierUser.setContactsEmail(coscoSupplierBase.getContactsEmail());
coscoSupplierUser.setType(CoscoType.COSCO_SUPPLIER_USER_TYPE_S);
coscoSupplierUserService.insertCoscoSupplierUser(coscoSupplierUser);
coscoSupplierBase.setId(supplierId);
coscoSupplierBase.setCreateBy(userId);
coscoSupplierBase.setCreateTime(date);

View File

@ -0,0 +1,125 @@
package com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.service.impl;
import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chinaunicom.mall.ebtp.common.base.entity.BaseCacheUser;
import com.chinaunicom.mall.ebtp.common.base.util.TokenUtil;
import com.chinaunicom.mall.ebtp.common.util.PropertyUtils;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.CoscoSupplierUserMapper;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser;
import com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.service.ICoscoSupplierUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
/**
* 中远海运_供应商_供应商联系人Service业务层处理
*
* @author ruoyi
* @date 2025-07-17
*/
@Service
public class CoscoSupplierUserServiceImpl implements ICoscoSupplierUserService {
@Autowired
private CoscoSupplierUserMapper coscoSupplierUserMapper;
/**
* 查询中远海运_供应商_供应商联系人
*
* @param id 中远海运_供应商_供应商联系人主键
* @return 中远海运_供应商_供应商联系人
*/
@Override
public CoscoSupplierUser selectCoscoSupplierUserById(String id) {
return coscoSupplierUserMapper.selectCoscoSupplierUserById(id);
}
/**
* 查询中远海运_供应商_供应商联系人列表
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 中远海运_供应商_供应商联系人
*/
@Override
public List<CoscoSupplierUser> selectCoscoSupplierUserList(CoscoSupplierUser coscoSupplierUser) {
return coscoSupplierUserMapper.selectCoscoSupplierUserList(coscoSupplierUser);
}
@Override
public IPage<CoscoSupplierUser> getPage(CoscoSupplierUser coscoSupplierUser) {
IPage<CoscoSupplierUser> page = new Page<>(coscoSupplierUser.getPageNo(), coscoSupplierUser.getPageSize());
return coscoSupplierUserMapper.selectCoscoSupplierUserPage(page,coscoSupplierUser);
}
/**
* 新增中远海运_供应商_供应商联系人
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 结果
*/
@Override
public int insertCoscoSupplierUser(CoscoSupplierUser coscoSupplierUser) {
BaseCacheUser currentUser = TokenUtil.getCurrentUser();
if(!ObjectUtils.isEmpty(currentUser)){
String userId = currentUser.getUserId();//登录人id
coscoSupplierUser.setCreateBy(userId);
coscoSupplierUser.setUpdateBy(userId);
}
Date date = new Date();
coscoSupplierUser.setId(PropertyUtils.getSnowflakeId());
//TODO 调用三方用户同步接口返回userId
coscoSupplierUser.setUserId("1");
coscoSupplierUser.setCreateTime(date);
coscoSupplierUser.setUpdateTime(date);
coscoSupplierUser.setLastUpdateTime(date);
return coscoSupplierUserMapper.insertCoscoSupplierUser(coscoSupplierUser);
}
/**
* 修改中远海运_供应商_供应商联系人
*
* @param coscoSupplierUser 中远海运_供应商_供应商联系人
* @return 结果
*/
@Override
public int updateCoscoSupplierUser(CoscoSupplierUser coscoSupplierUser) {
Date date = new Date();
BaseCacheUser currentUser = TokenUtil.getCurrentUser();
String userId = currentUser.getUserId();//登录人id
coscoSupplierUser.setUpdateBy(userId);
coscoSupplierUser.setUpdateTime(date);
coscoSupplierUser.setLastUpdateTime(date);
return coscoSupplierUserMapper.updateCoscoSupplierUser(coscoSupplierUser);
}
@Override
public int updateCoscoSupplierUserType(CoscoSupplierUser coscoSupplierUser) {
return coscoSupplierUserMapper.updateCoscoSupplierUserType(coscoSupplierUser);
}
/**
* 批量删除中远海运_供应商_供应商联系人
*
* @param ids 需要删除的中远海运_供应商_供应商联系人主键
* @return 结果
*/
@Override
public int deleteCoscoSupplierUserByIds(String[] ids) {
return coscoSupplierUserMapper.deleteCoscoSupplierUserByIds(ids);
}
/**
* 删除中远海运_供应商_供应商联系人信息
*
* @param id 中远海运_供应商_供应商联系人主键
* @return 结果
*/
@Override
public int deleteCoscoSupplierUserById(String id) {
return coscoSupplierUserMapper.deleteCoscoSupplierUserById(id);
}
}

View File

@ -0,0 +1,210 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.dao.mapper.CoscoSupplierUserMapper">
<resultMap type="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser" id="CoscoSupplierUserResult">
<result property="id" column="id"/>
<result property="supplierId" column="supplier_id"/>
<result property="userId" column="user_id"/>
<result property="contactsName" column="contacts_name"/>
<result property="contactsPhone" column="contacts_phone"/>
<result property="contactsEmail" column="contacts_email"/>
<result property="type" column="type"/>
<result property="delFlag" column="del_flag"/>
<result property="createBy" column="create_by"/>
<result property="createTime" column="create_time"/>
<result property="updateBy" column="update_by"/>
<result property="updateTime" column="update_time"/>
<result property="lastUpdateTime" column="last_update_time"/>
</resultMap>
<sql id="selectCoscoSupplierUserVo">
SELECT
id,
supplier_id,
user_id,
contacts_name,
contacts_phone,
contacts_email,
type,
del_flag,
create_by,
create_time,
update_by,
update_time,
last_update_time
FROM
cosco_supplier_user
</sql>
<select id="selectCoscoSupplierUserList" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser" resultMap="CoscoSupplierUserResult">
<include refid="selectCoscoSupplierUserVo"/>
<where>
and del_flag = 'normal'
<if test="supplierId != null and supplierId != ''">
and supplier_id = #{supplierId}
</if>
<if test="userId != null and userId != ''">
and user_id = #{userId}
</if>
<if test="contactsName != null and contactsName != ''">
and contacts_name like concat('%', #{contactsName}, '%')
</if>
<if test="contactsPhone != null and contactsPhone != ''">
and contacts_phone = #{contactsPhone}
</if>
<if test="contactsEmail != null and contactsEmail != ''">
and contacts_email = #{contactsEmail}
</if>
<if test="type != null ">
and type = #{type}
</if>
<if test="lastUpdateTime != null ">
and last_update_time = #{lastUpdateTime}
</if>
</where>
order by create_time desc
</select>
<select id="selectCoscoSupplierUserPage" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser" resultMap="CoscoSupplierUserResult">
<include refid="selectCoscoSupplierUserVo"/>
<where>
and del_flag = 'normal'
<if test="vo.supplierId != null and vo.supplierId != ''">
and supplier_id = #{vo.supplierId}
</if>
<if test="vo.userId != null and vo.userId != ''">
and user_id = #{vo.userId}
</if>
<if test="vo.contactsName != null and vo.contactsName != ''">
and contacts_name like concat('%', #{vo.contactsName}, '%')
</if>
<if test="vo.contactsPhone != null and vo.contactsPhone != ''">
and contacts_phone = #{vo.contactsPhone}
</if>
<if test="vo.contactsEmail != null and vo.contactsEmail != ''">
and contacts_email = #{vo.contactsEmail}
</if>
<if test="vo.type != null ">
and type = #{vo.type}
</if>
</where>
order by create_time desc
</select>
<select id="selectCoscoSupplierUserById" parameterType="String"
resultMap="CoscoSupplierUserResult">
<include refid="selectCoscoSupplierUserVo"/>
where id = #{id}
</select>
<insert id="insertCoscoSupplierUser" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser">
insert into cosco_supplier_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="supplierId != null and supplierId != ''">supplier_id,</if>
<if test="userId != null and userId != ''">user_id,</if>
<if test="contactsName != null and contactsName != ''">contacts_name,</if>
<if test="contactsPhone != null and contactsPhone != ''">contacts_phone,</if>
<if test="contactsEmail != null and contactsEmail != ''">contacts_email,</if>
<if test="type != null">type,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="lastUpdateTime != null">last_update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="supplierId != null and supplierId != ''">#{supplierId},</if>
<if test="userId != null and userId != ''">#{userId},</if>
<if test="contactsName != null and contactsName != ''">#{contactsName},</if>
<if test="contactsPhone != null and contactsPhone != ''">#{contactsPhone},</if>
<if test="contactsEmail != null and contactsEmail != ''">#{contactsEmail},</if>
<if test="type != null">#{type},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="lastUpdateTime != null">#{lastUpdateTime},</if>
</trim>
</insert>
<insert id="batchCoscoSupplierUser" parameterType="java.util.List">
insert into cosco_supplier_user
( id, supplier_id, user_id, contacts_name, contacts_phone, contacts_email, type, del_flag, create_by, create_time, update_by, update_time, last_update_time)
values
<foreach item="item" index="index" collection="list" separator=",">
( #{item.id}, #{item.supplierId}, #{item.userId}, #{item.contactsName}, #{item.contactsPhone}, #{item.contactsEmail}, #{item.type}, #{item.delFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.lastUpdateTime})
</foreach>
</insert>
<update id="updateCoscoSupplierUser" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser">
update cosco_supplier_user
<trim prefix="SET" suffixOverrides=",">
<if test="supplierId != null and supplierId != ''">supplier_id =
#{supplierId},
</if>
<if test="userId != null and userId != ''">user_id =
#{userId},
</if>
<if test="contactsName != null and contactsName != ''">contacts_name =
#{contactsName},
</if>
<if test="contactsPhone != null and contactsPhone != ''">contacts_phone =
#{contactsPhone},
</if>
<if test="contactsEmail != null and contactsEmail != ''">contacts_email =
#{contactsEmail},
</if>
<if test="type != null">type =
#{type},
</if>
<if test="delFlag != null and delFlag != ''">del_flag =
#{delFlag},
</if>
<if test="createBy != null and createBy != ''">create_by =
#{createBy},
</if>
<if test="createTime != null">create_time =
#{createTime},
</if>
<if test="updateBy != null">update_by =
#{updateBy},
</if>
<if test="updateTime != null">update_time =
#{updateTime},
</if>
<if test="lastUpdateTime != null">last_update_time =
#{lastUpdateTime},
</if>
</trim>
where id = #{id}
</update>
<update id="updateCoscoSupplierUserType" parameterType="com.chinaunicom.zyhy.ebtp.supplier.coscosupplier.entity.CoscoSupplierUser">
UPDATE cosco_supplier_user
SET type = CASE
WHEN id = #{id} THEN 1
ELSE 0
END,
update_time = NOW(),
last_update_time = NOW()
WHERE supplier_id = #{supplierId}
</update>
<update id="deleteCoscoSupplierUserById" parameterType="String">
update cosco_supplier_user set del_flag = 'deleted'
where id = #{id}
</update>
<update id="deleteCoscoSupplierUserByIds" parameterType="String">
update cosco_supplier_user set del_flag = 'deleted' where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>