修改三方验收bug
This commit is contained in:
@@ -2,6 +2,7 @@ package com.cool.store.dao;
|
||||
|
||||
import com.cool.store.entity.AssessmentDataDO;
|
||||
import com.cool.store.mapper.AssessmentDataMapper;
|
||||
import com.sun.org.apache.xpath.internal.operations.Bool;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -71,4 +72,10 @@ public class AssessmentDataDAO {
|
||||
public List<AssessmentDataDO> selectListByShopId(Long shopId) {
|
||||
return assessmentDataMapper.selectListByShopId(shopId);
|
||||
}
|
||||
public Boolean deleteByShopId(Long shopId){
|
||||
if (shopId == null){
|
||||
return Boolean.FALSE;
|
||||
}
|
||||
return assessmentDataMapper.deleteByShopId(shopId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,4 +11,5 @@ public interface AssessmentDataMapper extends Mapper<AssessmentDataDO> {
|
||||
Integer batchUpdate(List<AssessmentDataDO> AssessmentDataDOS);
|
||||
|
||||
List<AssessmentDataDO> selectListByShopId(@Param("shopId") Long shopId);
|
||||
Boolean deleteByShopId(@Param("shopId") Long shopId);
|
||||
}
|
||||
@@ -41,6 +41,9 @@
|
||||
</foreach>
|
||||
)
|
||||
</update>
|
||||
<delete id="deleteByShopId">
|
||||
DELETE FROM xfsg_assessment_data WHERE shop_id = #{shopId}
|
||||
</delete>
|
||||
<select id="selectListByShopId" resultType="com.cool.store.entity.AssessmentDataDO">
|
||||
select *
|
||||
from xfsg_assessment_data
|
||||
|
||||
Reference in New Issue
Block a user