修改设计师和设计组接口
This commit is contained in:
@@ -24,14 +24,15 @@ public class DecorationDesignInfoDAO {
|
||||
@Resource
|
||||
DecorationDesignInfoMapper decorationDesignInfoMapper;
|
||||
|
||||
public DecorationDesignInfoDO getById(Long id){
|
||||
if(id == null){
|
||||
public DecorationDesignInfoDO getById(Long id) {
|
||||
if (id == null) {
|
||||
return null;
|
||||
}
|
||||
return decorationDesignInfoMapper.selectByPrimaryKey(id);
|
||||
}
|
||||
public List<DecorationDesignInfoDO> getByIds(List<Long> shopIds){
|
||||
if(CollectionUtils.isEmpty(shopIds)){
|
||||
|
||||
public List<DecorationDesignInfoDO> getByIds(List<Long> shopIds) {
|
||||
if (CollectionUtils.isEmpty(shopIds)) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
Example example = new Example(DecorationDesignInfoDO.class);
|
||||
@@ -39,29 +40,41 @@ public class DecorationDesignInfoDAO {
|
||||
return decorationDesignInfoMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
public Integer insertSelective(DecorationDesignInfoDO decorationDesignInfoDO){
|
||||
public Integer insertSelective(DecorationDesignInfoDO decorationDesignInfoDO) {
|
||||
return decorationDesignInfoMapper.insertSelective(decorationDesignInfoDO);
|
||||
}
|
||||
|
||||
public Integer updateByPrimaryKeySelective(DecorationDesignInfoDO decorationDesignInfoDO){
|
||||
public Integer updateByPrimaryKeySelective(DecorationDesignInfoDO decorationDesignInfoDO) {
|
||||
return decorationDesignInfoMapper.updateByPrimaryKeySelective(decorationDesignInfoDO);
|
||||
}
|
||||
|
||||
public DecorationDesignInfoDO getByShopId(Long shopId){
|
||||
if(shopId == null){
|
||||
public DecorationDesignInfoDO getByShopId(Long shopId) {
|
||||
if (shopId == null) {
|
||||
return null;
|
||||
}
|
||||
return decorationDesignInfoMapper.selectByShopId(shopId);
|
||||
}
|
||||
|
||||
// 根据设计师人员id和店铺阶段 SHOP_SUB_STAGE_STATUS_901 查询店铺信息
|
||||
public List<PreparationCommonPendingVO> getByDesignUserIdAndShopStage(String userId, String keyword){
|
||||
if(userId == null){
|
||||
public List<PreparationCommonPendingVO> getByDesignUserIdAndShopStage(String userId, String keyword) {
|
||||
if (userId == null) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return decorationDesignInfoMapper.getByDesignUserIdAndShopStage(userId, keyword);
|
||||
return decorationDesignInfoMapper.getByDesignUserIdAndShopStage(userId, keyword);
|
||||
}
|
||||
|
||||
public Integer updateDesignLeaderIdAndDesignUserIdInteger(Long shopId, String designLeaderId) {
|
||||
if (shopId == null|| StringUtil.isEmpty(designLeaderId)){
|
||||
return 0;
|
||||
}
|
||||
return decorationDesignInfoMapper.updateDesignLeaderIdAndDesignUserIdInteger(shopId, designLeaderId);
|
||||
}
|
||||
|
||||
public Integer updateDesignUserId(Long shopId, String designUserId) {
|
||||
if (shopId == null|| StringUtil.isEmpty(designUserId)){
|
||||
return 0;
|
||||
}
|
||||
return decorationDesignInfoMapper.updateDesignUserId(shopId, designUserId);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,5 +18,12 @@ public interface DecorationDesignInfoMapper extends Mapper<DecorationDesignInfoD
|
||||
DecorationDesignInfoDO selectByShopId(Long shopId);
|
||||
|
||||
List<PreparationCommonPendingVO> getByDesignUserIdAndShopStage(@Param("userId") String userId,@Param("keyword") String keyword);
|
||||
/**
|
||||
* @Auther: wangshuo
|
||||
* @Date: 2025/6/16
|
||||
* @description:DesignUserId置空
|
||||
*/
|
||||
Integer updateDesignLeaderIdAndDesignUserIdInteger(@Param("shopId") Long shopId,@Param("designLeaderId") String designLeaderId);
|
||||
|
||||
Integer updateDesignUserId(@Param("shopId") Long shopId,@Param("designUserId") String designUserId);
|
||||
}
|
||||
@@ -27,6 +27,17 @@
|
||||
<result column="design_submit_time" jdbcType="TIMESTAMP" property="designSubmitTime" />
|
||||
<result column="quotation_submit_time" jdbcType="TIMESTAMP" property="quotationSubmitTime" />
|
||||
</resultMap>
|
||||
<update id="updateDesignLeaderIdAndDesignUserIdInteger">
|
||||
update xfsg_decoration_design_info
|
||||
set design_leader_id = #{designLeaderId},
|
||||
design_user_id = null
|
||||
where shop_id = #{shopId}
|
||||
</update>
|
||||
<update id="updateDesignUserId">
|
||||
update xfsg_decoration_design_info
|
||||
set design_user_id = #{designUserId}
|
||||
where shop_id = #{shopId}
|
||||
</update>
|
||||
|
||||
<select id="selectByShopId" resultMap="BaseResultMap">
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user