fix: 79828 车型项目库详情-调取的数据,在产车实施日期、新车型实施日期没有正常回显

This commit is contained in:
2024-02-02 15:22:03 +08:00
parent 2bf17b67b5
commit 0c19f54f5f
3 changed files with 35 additions and 6 deletions
@@ -2,6 +2,10 @@ package com.jero.modules.laws.standard.mapper;
import com.jero.modules.laws.standard.entity.LawsDomesticStandard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
* @Description: 国内标准
@@ -11,4 +15,12 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface LawsDomesticStandardMapper extends BaseMapper<LawsDomesticStandard> {
@Update("UPDATE laws_domestic_standard SET new_model_implementation_date = #{newModelImplementationDate}, on_the_production_date = #{onTheProductionDate} WHERE id = #{id}")
void updateIgnoreDelFlag(LawsDomesticStandard standard);
@Select("SELECT * FROM laws_domestic_standard")
List<LawsDomesticStandard> listWithoutDelFlag();
@Select("UPDATE laws_domestic_standard SET annulment_date = null WHERE annulment_date = '0000-00-00'")
void cleanAnnulmentDate();
}
@@ -2,6 +2,10 @@ package com.jero.modules.laws.standard.mapper;
import com.jero.modules.laws.standard.entity.LawsOverseasStandard;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
* @Description: 海外标准
@@ -11,4 +15,12 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface LawsOverseasStandardMapper extends BaseMapper<LawsOverseasStandard> {
@Update("UPDATE laws_overseas_standard SET new_model_implementation_date = #{newModelImplementationDate}, on_the_production_date = #{onTheProductionDate} WHERE id = #{id}")
void updateIgnoreDelFlag(LawsOverseasStandard standard);
@Select("SELECT * FROM laws_overseas_standard")
List<LawsOverseasStandard> listWithoutDelFlag();
@Select("UPDATE laws_overseas_standard SET annulment_date = null WHERE annulment_date = '0000-00-00'")
void cleanAnnulmentDate();
}