Commit 61091991 by zhangkb

修改基础项稽核接口逻辑

parent 47713995
......@@ -19,7 +19,7 @@ public interface IndicatorsDataMapper extends BaseMapper<IndicatorsData>{
public List<IndicatorsData> getIndDataByCodeAndDateIn(Map<String,Object> param);
public List<IndicatorsData> getCheckIndData(@Param("indId") String indId, @Param("dim1")String dim1,
@Param("dim2")Integer dim2, @Param("code")String code);
@Param("dim2")Integer dim2, @Param("value")String value, @Param("code")String code);
public List<Integer> getCheckDates(@Param("code")String code);
......
......@@ -97,7 +97,8 @@ public class BaseDataCheckService {
StringUtils.isNotBlank(indiData.getIndId()) &&
StringUtils.isNotBlank(indiData.getCode())) {
List<IndicatorsData> checkIndDatas = indicatorsDataMapper.getCheckIndData(
indiData.getIndId(), indiData.getDim1(), indiData.getDim2(), code);
indiData.getIndId(), indiData.getDim1(), indiData.getDim2(),
indiData.getValue(), code);
if(!checkIndDatas.isEmpty()) {
for(IndicatorsData checkIndData : checkIndDatas) {
IndiDataCheck data = new IndiDataCheck(null,indiData.getIndId(),
......
......@@ -48,6 +48,7 @@
ind_id = #{indId} and
dim1 = #{dim1} and
dim2 = #{dim2} and
value != #{value} and
code != #{code}
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment