项目库标准详情

This commit is contained in:
caozhen
2023-09-14 13:53:14 +08:00
parent bd265f2440
commit 9eefd1db3c
15 changed files with 178 additions and 222 deletions
@@ -99,14 +99,14 @@ public class LawsStandardCollection implements Serializable {
@ApiModelProperty(value = "新车型实施日期")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date newModelImplementationDate;
private String newModelImplementationDate;
/**在产车实施日期*/
@TableField(exist = false)
@ApiModelProperty(value = "在产车实施日期")
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
@DateTimeFormat(pattern="yyyy-MM-dd")
private Date onTheProductionDate;
private String onTheProductionDate;
/**标准状态*/
@TableField(exist = false)
@@ -5,6 +5,8 @@ import com.baomidou.mybatisplus.extension.service.IService;
import javax.servlet.http.HttpServletRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;
/**
* @Description: 标准收藏
* @Author: jero-boot
@@ -39,6 +41,7 @@ public interface ILawsStandardCollectionService extends IService<LawsStandardCol
* 删除标准收藏
*/
void deleteByStandardId(String id);
void deleteByStandardIds(List<String> ids);
}
@@ -131,4 +131,17 @@ public class LawsStandardCollectionServiceImpl extends ServiceImpl<LawsStandardC
wrapper.eq(LawsStandardCollection::getStandardId, id);
remove(wrapper);
}
/**
* 删除标准收藏
*/
@Override
public void deleteByStandardIds(List<String> ids) {
if (ids.isEmpty()){
return;
}
LambdaQueryWrapper<LawsStandardCollection> wrapper = new LambdaQueryWrapper<>();
wrapper.in(LawsStandardCollection::getStandardId, ids);
remove(wrapper);
}
}