|
@@ -11,6 +11,8 @@ import com.fs.his.vo.FsFamousPrescribeExecelVO;
|
|
|
import com.fs.his.vo.FsFamousPrescribeListUVO;
|
|
|
import com.fs.his.vo.FsFamousPrescribeListVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.cache.annotation.CacheEvict;
|
|
|
+import org.springframework.cache.annotation.Caching;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.fs.his.mapper.FsFamousPrescribeMapper;
|
|
|
import com.fs.his.domain.FsFamousPrescribe;
|
|
@@ -59,6 +61,7 @@ public class FsFamousPrescribeServiceImpl implements IFsFamousPrescribeService
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @CacheEvict(value = "getFamousPrescribeList",allEntries = true)
|
|
|
public int insertFsFamousPrescribe(FsFamousPrescribe fsFamousPrescribe)
|
|
|
{
|
|
|
fsFamousPrescribe.setCreateTime(DateUtils.getNowDate());
|
|
@@ -72,6 +75,10 @@ public class FsFamousPrescribeServiceImpl implements IFsFamousPrescribeService
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Caching(evict = {
|
|
|
+ @CacheEvict(value = "getFamousPrescribeList", allEntries = true),
|
|
|
+ @CacheEvict(value = "getFamousPrescribeById", key = "#fsFamousPrescribe.id")
|
|
|
+ })
|
|
|
public int updateFsFamousPrescribe(FsFamousPrescribe fsFamousPrescribe)
|
|
|
{
|
|
|
return fsFamousPrescribeMapper.updateFsFamousPrescribe(fsFamousPrescribe);
|
|
@@ -84,6 +91,11 @@ public class FsFamousPrescribeServiceImpl implements IFsFamousPrescribeService
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Caching(evict = {
|
|
|
+ @CacheEvict(value = "getFamousPrescribeList", allEntries = true),
|
|
|
+ @CacheEvict(value = "getFamousPrescribeById",
|
|
|
+ key = "#ids")
|
|
|
+ })
|
|
|
public int deleteFsFamousPrescribeByIds(Long[] ids)
|
|
|
{
|
|
|
return fsFamousPrescribeMapper.deleteFsFamousPrescribeByIds(ids);
|
|
@@ -96,6 +108,11 @@ public class FsFamousPrescribeServiceImpl implements IFsFamousPrescribeService
|
|
|
* @return 结果
|
|
|
*/
|
|
|
@Override
|
|
|
+ @Caching(evict = {
|
|
|
+ @CacheEvict(value = "getFamousPrescribeList", allEntries = true),
|
|
|
+ @CacheEvict(value = "getFamousPrescribeById",
|
|
|
+ key = "#id")
|
|
|
+ })
|
|
|
public int deleteFsFamousPrescribeById(Long id)
|
|
|
{
|
|
|
return fsFamousPrescribeMapper.deleteFsFamousPrescribeById(id);
|
|
@@ -107,6 +124,7 @@ public class FsFamousPrescribeServiceImpl implements IFsFamousPrescribeService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @CacheEvict(value = "getFamousPrescribeList",allEntries = true)
|
|
|
public String importData(List<FsFamousPrescribeExecelVO> list) {
|
|
|
if (com.fs.common.utils.StringUtils.isNull(list) || list.size() == 0)
|
|
|
{
|