Commit 0734b057 authored by 季圣华's avatar 季圣华
Browse files

更新Mapper的文件结构

parent 1151add2
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.MaterialProperty;
import com.jsh.erp.datasource.entities.MaterialPropertyExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface MaterialPropertyMapperEx {
List<MaterialProperty> selectByConditionMaterialProperty(
@Param("name") String name,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByMaterialProperty(@Param("name") String name);
}
\ No newline at end of file
...@@ -93,14 +93,4 @@ public interface PersonMapper { ...@@ -93,14 +93,4 @@ public interface PersonMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(Person record); int updateByPrimaryKey(Person record);
List<Person> selectByConditionPerson(
@Param("name") String name,
@Param("type") String type,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByPerson(
@Param("name") String name,
@Param("type") String type);
} }
\ No newline at end of file
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Person;
import com.jsh.erp.datasource.entities.PersonExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface PersonMapperEx {
List<Person> selectByConditionPerson(
@Param("name") String name,
@Param("type") String type,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByPerson(
@Param("name") String name,
@Param("type") String type);
}
\ No newline at end of file
...@@ -93,12 +93,4 @@ public interface RoleMapper { ...@@ -93,12 +93,4 @@ public interface RoleMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(Role record); int updateByPrimaryKey(Role record);
List<Role> selectByConditionRole(
@Param("name") String name,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByRole(
@Param("name") String name);
} }
\ No newline at end of file
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Role;
import com.jsh.erp.datasource.entities.RoleExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface RoleMapperEx {
List<Role> selectByConditionRole(
@Param("name") String name,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByRole(
@Param("name") String name);
}
\ No newline at end of file
...@@ -93,27 +93,4 @@ public interface SupplierMapper { ...@@ -93,27 +93,4 @@ public interface SupplierMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(Supplier record); int updateByPrimaryKey(Supplier record);
List<Supplier> selectByConditionSupplier(
@Param("supplier") String supplier,
@Param("type") String type,
@Param("phonenum") String phonenum,
@Param("telephone") String telephone,
@Param("description") String description,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsBySupplier(
@Param("supplier") String supplier,
@Param("type") String type,
@Param("phonenum") String phonenum,
@Param("telephone") String telephone,
@Param("description") String description);
List<Supplier> findByAll(
@Param("supplier") String supplier,
@Param("type") String type,
@Param("phonenum") String phonenum,
@Param("telephone") String telephone,
@Param("description") String description);
} }
\ No newline at end of file
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Supplier;
import com.jsh.erp.datasource.entities.SupplierExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SupplierMapperEx {
List<Supplier> selectByConditionSupplier(
@Param("supplier") String supplier,
@Param("type") String type,
@Param("phonenum") String phonenum,
@Param("telephone") String telephone,
@Param("description") String description,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsBySupplier(
@Param("supplier") String supplier,
@Param("type") String type,
@Param("phonenum") String phonenum,
@Param("telephone") String telephone,
@Param("description") String description);
List<Supplier> findByAll(
@Param("supplier") String supplier,
@Param("type") String type,
@Param("phonenum") String phonenum,
@Param("telephone") String telephone,
@Param("description") String description);
}
\ No newline at end of file
...@@ -93,10 +93,4 @@ public interface SystemConfigMapper { ...@@ -93,10 +93,4 @@ public interface SystemConfigMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(SystemConfig record); int updateByPrimaryKey(SystemConfig record);
List<SystemConfig> selectByConditionSystemConfig(
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsBySystemConfig();
} }
\ No newline at end of file
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.SystemConfig;
import com.jsh.erp.datasource.entities.SystemConfigExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface SystemConfigMapperEx {
List<SystemConfig> selectByConditionSystemConfig(
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsBySystemConfig();
}
\ No newline at end of file
...@@ -93,12 +93,4 @@ public interface UnitMapper { ...@@ -93,12 +93,4 @@ public interface UnitMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(Unit record); int updateByPrimaryKey(Unit record);
List<Unit> selectByConditionUnit(
@Param("name") String name,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByUnit(
@Param("name") String name);
} }
\ No newline at end of file
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Unit;
import com.jsh.erp.datasource.entities.UnitExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface UnitMapperEx {
List<Unit> selectByConditionUnit(
@Param("name") String name,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByUnit(
@Param("name") String name);
}
\ No newline at end of file
...@@ -93,14 +93,4 @@ public interface UserMapper { ...@@ -93,14 +93,4 @@ public interface UserMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(User record); int updateByPrimaryKey(User record);
List<User> selectByConditionUser(
@Param("userName") String userName,
@Param("loginName") String loginName,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByUser(
@Param("userName") String userName,
@Param("loginName") String loginName);
} }
\ No newline at end of file
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.datasource.entities.UserExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface UserMapperEx {
List<User> selectByConditionUser(
@Param("userName") String userName,
@Param("loginName") String loginName,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByUser(
@Param("userName") String userName,
@Param("loginName") String loginName);
}
\ No newline at end of file
...@@ -2,10 +2,7 @@ package com.jsh.erp.service.account; ...@@ -2,10 +2,7 @@ package com.jsh.erp.service.account;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.*; import com.jsh.erp.datasource.entities.*;
import com.jsh.erp.datasource.mappers.AccountHeadMapper; import com.jsh.erp.datasource.mappers.*;
import com.jsh.erp.datasource.mappers.AccountItemMapper;
import com.jsh.erp.datasource.mappers.AccountMapper;
import com.jsh.erp.datasource.mappers.DepotHeadMapper;
import com.jsh.erp.datasource.vo.AccountVo4InOutList; import com.jsh.erp.datasource.vo.AccountVo4InOutList;
import com.jsh.erp.datasource.vo.AccountVo4List; import com.jsh.erp.datasource.vo.AccountVo4List;
import com.jsh.erp.utils.StringUtil; import com.jsh.erp.utils.StringUtil;
...@@ -31,6 +28,9 @@ public class AccountService { ...@@ -31,6 +28,9 @@ public class AccountService {
@Resource @Resource
private AccountMapper accountMapper; private AccountMapper accountMapper;
@Resource
private AccountMapperEx accountMapperEx;
@Resource @Resource
private DepotHeadMapper depotHeadMapper; private DepotHeadMapper depotHeadMapper;
...@@ -51,7 +51,7 @@ public class AccountService { ...@@ -51,7 +51,7 @@ public class AccountService {
public List<AccountVo4List> select(String name, String serialNo, String remark, int offset, int rows) { public List<AccountVo4List> select(String name, String serialNo, String remark, int offset, int rows) {
List<AccountVo4List> resList = new ArrayList<AccountVo4List>(); List<AccountVo4List> resList = new ArrayList<AccountVo4List>();
List<AccountVo4List> list = accountMapper.selectByConditionAccount(name, serialNo, remark, offset, rows); List<AccountVo4List> list = accountMapperEx.selectByConditionAccount(name, serialNo, remark, offset, rows);
String timeStr = Tools.getCurrentMonth(); String timeStr = Tools.getCurrentMonth();
if (null != list && null !=timeStr) { if (null != list && null !=timeStr) {
for (AccountVo4List al : list) { for (AccountVo4List al : list) {
...@@ -71,7 +71,7 @@ public class AccountService { ...@@ -71,7 +71,7 @@ public class AccountService {
} }
public int countAccount(String name, String serialNo, String remark) { public int countAccount(String name, String serialNo, String remark) {
return accountMapper.countsByAccount(name, serialNo, remark); return accountMapperEx.countsByAccount(name, serialNo, remark);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
...@@ -294,11 +294,11 @@ public class AccountService { ...@@ -294,11 +294,11 @@ public class AccountService {
} }
public List<AccountVo4InOutList> findAccountInOutList(Long accountId, Integer offset, Integer rows) { public List<AccountVo4InOutList> findAccountInOutList(Long accountId, Integer offset, Integer rows) {
return accountMapper.findAccountInOutList(accountId, offset, rows); return accountMapperEx.findAccountInOutList(accountId, offset, rows);
} }
public int findAccountInOutListCount(Long accountId) { public int findAccountInOutListCount(Long accountId) {
return accountMapper.findAccountInOutListCount(accountId); return accountMapperEx.findAccountInOutListCount(accountId);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
......
...@@ -5,6 +5,7 @@ import com.jsh.erp.datasource.entities.AccountHead; ...@@ -5,6 +5,7 @@ import com.jsh.erp.datasource.entities.AccountHead;
import com.jsh.erp.datasource.entities.AccountHeadExample; import com.jsh.erp.datasource.entities.AccountHeadExample;
import com.jsh.erp.datasource.entities.AccountHeadVo4ListEx; import com.jsh.erp.datasource.entities.AccountHeadVo4ListEx;
import com.jsh.erp.datasource.mappers.AccountHeadMapper; import com.jsh.erp.datasource.mappers.AccountHeadMapper;
import com.jsh.erp.datasource.mappers.AccountHeadMapperEx;
import com.jsh.erp.utils.StringUtil; import com.jsh.erp.utils.StringUtil;
import com.jsh.erp.utils.Tools; import com.jsh.erp.utils.Tools;
import org.slf4j.Logger; import org.slf4j.Logger;
...@@ -25,6 +26,9 @@ public class AccountHeadService { ...@@ -25,6 +26,9 @@ public class AccountHeadService {
@Resource @Resource
private AccountHeadMapper accountHeadMapper; private AccountHeadMapper accountHeadMapper;
@Resource
private AccountHeadMapperEx accountHeadMapperEx;
public AccountHead getAccountHead(long id) { public AccountHead getAccountHead(long id) {
return accountHeadMapper.selectByPrimaryKey(id); return accountHeadMapper.selectByPrimaryKey(id);
} }
...@@ -36,7 +40,7 @@ public class AccountHeadService { ...@@ -36,7 +40,7 @@ public class AccountHeadService {
public List<AccountHeadVo4ListEx> select(String type, String billNo, String beginTime, String endTime, int offset, int rows) { public List<AccountHeadVo4ListEx> select(String type, String billNo, String beginTime, String endTime, int offset, int rows) {
List<AccountHeadVo4ListEx> resList = new ArrayList<AccountHeadVo4ListEx>(); List<AccountHeadVo4ListEx> resList = new ArrayList<AccountHeadVo4ListEx>();
List<AccountHeadVo4ListEx> list = accountHeadMapper.selectByConditionAccountHead(type, billNo, beginTime, endTime, offset, rows); List<AccountHeadVo4ListEx> list = accountHeadMapperEx.selectByConditionAccountHead(type, billNo, beginTime, endTime, offset, rows);
if (null != list) { if (null != list) {
for (AccountHeadVo4ListEx ah : list) { for (AccountHeadVo4ListEx ah : list) {
if(ah.getChangeamount() != null) { if(ah.getChangeamount() != null) {
...@@ -52,7 +56,7 @@ public class AccountHeadService { ...@@ -52,7 +56,7 @@ public class AccountHeadService {
} }
public int countAccountHead(String type, String billNo, String beginTime, String endTime) { public int countAccountHead(String type, String billNo, String beginTime, String endTime) {
return accountHeadMapper.countsByAccountHead(type, billNo, beginTime, endTime); return accountHeadMapperEx.countsByAccountHead(type, billNo, beginTime, endTime);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
...@@ -89,7 +93,7 @@ public class AccountHeadService { ...@@ -89,7 +93,7 @@ public class AccountHeadService {
} }
public Long getMaxId() { public Long getMaxId() {
return accountHeadMapper.getMaxId(); return accountHeadMapperEx.getMaxId();
} }
public BigDecimal findAllMoney(Integer supplierId, String type, String mode, String endTime) { public BigDecimal findAllMoney(Integer supplierId, String type, String mode, String endTime) {
...@@ -99,12 +103,12 @@ public class AccountHeadService { ...@@ -99,12 +103,12 @@ public class AccountHeadService {
} else if (mode.equals("合计")) { } else if (mode.equals("合计")) {
modeName = "TotalPrice"; modeName = "TotalPrice";
} }
return accountHeadMapper.findAllMoney(supplierId, type, modeName, endTime); return accountHeadMapperEx.findAllMoney(supplierId, type, modeName, endTime);
} }
public List<AccountHeadVo4ListEx> getDetailByNumber(String billNo) { public List<AccountHeadVo4ListEx> getDetailByNumber(String billNo) {
List<AccountHeadVo4ListEx> resList = new ArrayList<AccountHeadVo4ListEx>(); List<AccountHeadVo4ListEx> resList = new ArrayList<AccountHeadVo4ListEx>();
List<AccountHeadVo4ListEx> list = accountHeadMapper.getDetailByNumber(billNo); List<AccountHeadVo4ListEx> list = accountHeadMapperEx.getDetailByNumber(billNo);
if (null != list) { if (null != list) {
for (AccountHeadVo4ListEx ah : list) { for (AccountHeadVo4ListEx ah : list) {
if(ah.getChangeamount() != null) { if(ah.getChangeamount() != null) {
......
...@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.AccountItem; import com.jsh.erp.datasource.entities.AccountItem;
import com.jsh.erp.datasource.entities.AccountItemExample; import com.jsh.erp.datasource.entities.AccountItemExample;
import com.jsh.erp.datasource.mappers.AccountItemMapper; import com.jsh.erp.datasource.mappers.AccountItemMapper;
import com.jsh.erp.datasource.mappers.AccountItemMapperEx;
import com.jsh.erp.datasource.vo.AccountItemVo4List; import com.jsh.erp.datasource.vo.AccountItemVo4List;
import com.jsh.erp.utils.ErpInfo; import com.jsh.erp.utils.ErpInfo;
import com.jsh.erp.utils.StringUtil; import com.jsh.erp.utils.StringUtil;
...@@ -28,6 +29,9 @@ public class AccountItemService { ...@@ -28,6 +29,9 @@ public class AccountItemService {
@Resource @Resource
private AccountItemMapper accountItemMapper; private AccountItemMapper accountItemMapper;
@Resource
private AccountItemMapperEx accountItemMapperEx;
public AccountItem getAccountItem(long id) { public AccountItem getAccountItem(long id) {
return accountItemMapper.selectByPrimaryKey(id); return accountItemMapper.selectByPrimaryKey(id);
} }
...@@ -38,11 +42,11 @@ public class AccountItemService { ...@@ -38,11 +42,11 @@ public class AccountItemService {
} }
public List<AccountItem> select(String name, Integer type, String remark, int offset, int rows) { public List<AccountItem> select(String name, Integer type, String remark, int offset, int rows) {
return accountItemMapper.selectByConditionAccountItem(name, type, remark, offset, rows); return accountItemMapperEx.selectByConditionAccountItem(name, type, remark, offset, rows);
} }
public int countAccountItem(String name, Integer type, String remark) { public int countAccountItem(String name, Integer type, String remark) {
return accountItemMapper.countsByAccountItem(name, type, remark); return accountItemMapperEx.countsByAccountItem(name, type, remark);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
...@@ -89,7 +93,7 @@ public class AccountItemService { ...@@ -89,7 +93,7 @@ public class AccountItemService {
} }
public List<AccountItemVo4List> getDetailList(Long headerId) { public List<AccountItemVo4List> getDetailList(Long headerId) {
return accountItemMapper.getDetailList(headerId); return accountItemMapperEx.getDetailList(headerId);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
public String saveDetials(String inserted, String deleted, String updated, Long headerId, String listType) throws DataAccessException { public String saveDetials(String inserted, String deleted, String updated, Long headerId, String listType) throws DataAccessException {
......
...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.App; import com.jsh.erp.datasource.entities.App;
import com.jsh.erp.datasource.entities.AppExample; import com.jsh.erp.datasource.entities.AppExample;
import com.jsh.erp.datasource.mappers.AppMapper; import com.jsh.erp.datasource.mappers.AppMapper;
import com.jsh.erp.datasource.mappers.AppMapperEx;
import com.jsh.erp.utils.StringUtil; import com.jsh.erp.utils.StringUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -20,6 +21,8 @@ public class AppService { ...@@ -20,6 +21,8 @@ public class AppService {
@Resource @Resource
private AppMapper appMapper; private AppMapper appMapper;
@Resource
private AppMapperEx appMapperEx;
public List<App> findDock(){ public List<App> findDock(){
AppExample example = new AppExample(); AppExample example = new AppExample();
...@@ -54,11 +57,11 @@ public class AppService { ...@@ -54,11 +57,11 @@ public class AppService {
} }
public List<App> select(String name, String type, int offset, int rows) { public List<App> select(String name, String type, int offset, int rows) {
return appMapper.selectByConditionApp(name, type, offset, rows); return appMapperEx.selectByConditionApp(name, type, offset, rows);
} }
public int countApp(String name, String type) { public int countApp(String name, String type) {
return appMapper.countsByApp(name, type); return appMapperEx.countsByApp(name, type);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
......
...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.Depot; import com.jsh.erp.datasource.entities.Depot;
import com.jsh.erp.datasource.entities.DepotExample; import com.jsh.erp.datasource.entities.DepotExample;
import com.jsh.erp.datasource.mappers.DepotMapper; import com.jsh.erp.datasource.mappers.DepotMapper;
import com.jsh.erp.datasource.mappers.DepotMapperEx;
import com.jsh.erp.utils.StringUtil; import com.jsh.erp.utils.StringUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -21,6 +22,9 @@ public class DepotService { ...@@ -21,6 +22,9 @@ public class DepotService {
@Resource @Resource
private DepotMapper depotMapper; private DepotMapper depotMapper;
@Resource
private DepotMapperEx depotMapperEx;
public Depot getDepot(long id) { public Depot getDepot(long id) {
return depotMapper.selectByPrimaryKey(id); return depotMapper.selectByPrimaryKey(id);
} }
...@@ -37,11 +41,11 @@ public class DepotService { ...@@ -37,11 +41,11 @@ public class DepotService {
} }
public List<Depot> select(String name, Integer type, String remark, int offset, int rows) { public List<Depot> select(String name, Integer type, String remark, int offset, int rows) {
return depotMapper.selectByConditionDepot(name, type, remark, offset, rows); return depotMapperEx.selectByConditionDepot(name, type, remark, offset, rows);
} }
public int countDepot(String name, Integer type, String remark) { public int countDepot(String name, Integer type, String remark) {
return depotMapper.countsByDepot(name, type, remark); return depotMapperEx.countsByDepot(name, type, remark);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
......
...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.Functions; import com.jsh.erp.datasource.entities.Functions;
import com.jsh.erp.datasource.entities.FunctionsExample; import com.jsh.erp.datasource.entities.FunctionsExample;
import com.jsh.erp.datasource.mappers.FunctionsMapper; import com.jsh.erp.datasource.mappers.FunctionsMapper;
import com.jsh.erp.datasource.mappers.FunctionsMapperEx;
import com.jsh.erp.utils.StringUtil; import com.jsh.erp.utils.StringUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -21,6 +22,9 @@ public class FunctionsService { ...@@ -21,6 +22,9 @@ public class FunctionsService {
@Resource @Resource
private FunctionsMapper functionsMapper; private FunctionsMapper functionsMapper;
@Resource
private FunctionsMapperEx functionsMapperEx;
public Functions getFunctions(long id) { public Functions getFunctions(long id) {
return functionsMapper.selectByPrimaryKey(id); return functionsMapper.selectByPrimaryKey(id);
} }
...@@ -31,11 +35,11 @@ public class FunctionsService { ...@@ -31,11 +35,11 @@ public class FunctionsService {
} }
public List<Functions> select(String name, String type, int offset, int rows) { public List<Functions> select(String name, String type, int offset, int rows) {
return functionsMapper.selectByConditionFunctions(name, type, offset, rows); return functionsMapperEx.selectByConditionFunctions(name, type, offset, rows);
} }
public int countFunctions(String name, String type) { public int countFunctions(String name, String type) {
return functionsMapper.countsByFunctions(name, type); return functionsMapperEx.countsByFunctions(name, type);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
......
...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject; ...@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.InOutItem; import com.jsh.erp.datasource.entities.InOutItem;
import com.jsh.erp.datasource.entities.InOutItemExample; import com.jsh.erp.datasource.entities.InOutItemExample;
import com.jsh.erp.datasource.mappers.InOutItemMapper; import com.jsh.erp.datasource.mappers.InOutItemMapper;
import com.jsh.erp.datasource.mappers.InOutItemMapperEx;
import com.jsh.erp.utils.StringUtil; import com.jsh.erp.utils.StringUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
...@@ -21,6 +22,9 @@ public class InOutItemService { ...@@ -21,6 +22,9 @@ public class InOutItemService {
@Resource @Resource
private InOutItemMapper inOutItemMapper; private InOutItemMapper inOutItemMapper;
@Resource
private InOutItemMapperEx inOutItemMapperEx;
public InOutItem getInOutItem(long id) { public InOutItem getInOutItem(long id) {
return inOutItemMapper.selectByPrimaryKey(id); return inOutItemMapper.selectByPrimaryKey(id);
} }
...@@ -31,11 +35,11 @@ public class InOutItemService { ...@@ -31,11 +35,11 @@ public class InOutItemService {
} }
public List<InOutItem> select(String name, String type, String remark, int offset, int rows) { public List<InOutItem> select(String name, String type, String remark, int offset, int rows) {
return inOutItemMapper.selectByConditionInOutItem(name, type, remark, offset, rows); return inOutItemMapperEx.selectByConditionInOutItem(name, type, remark, offset, rows);
} }
public int countInOutItem(String name, String type, String remark) { public int countInOutItem(String name, String type, String remark) {
return inOutItemMapper.countsByInOutItem(name, type, remark); return inOutItemMapperEx.countsByInOutItem(name, type, remark);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
......
Supports Markdown
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