更新Mapper的文件结构

This commit is contained in:
季圣华
2019-02-24 13:44:24 +08:00
parent 1151add283
commit 0734b057d7
48 changed files with 449 additions and 247 deletions

View File

@@ -16,8 +16,4 @@ public class ErpApplication{
public static void main(String[] args) { public static void main(String[] args) {
SpringApplication.run(ErpApplication.class, args); SpringApplication.run(ErpApplication.class, args);
} }
} }

View File

@@ -97,29 +97,4 @@ public interface AccountHeadMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(AccountHead record); int updateByPrimaryKey(AccountHead record);
List<AccountHeadVo4ListEx> selectByConditionAccountHead(
@Param("type") String type,
@Param("billNo") String billNo,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByAccountHead(
@Param("type") String type,
@Param("billNo") String billNo,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime);
Long getMaxId();
BigDecimal findAllMoney(
@Param("supplierId") Integer supplierId,
@Param("type") String type,
@Param("modeName") String modeName,
@Param("endTime") String endTime);
List<AccountHeadVo4ListEx> getDetailByNumber(
@Param("billNo") String billNo);
} }

View File

@@ -0,0 +1,37 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.AccountHead;
import com.jsh.erp.datasource.entities.AccountHeadExample;
import com.jsh.erp.datasource.entities.AccountHeadVo4ListEx;
import org.apache.ibatis.annotations.Param;
import java.math.BigDecimal;
import java.util.List;
public interface AccountHeadMapperEx {
List<AccountHeadVo4ListEx> selectByConditionAccountHead(
@Param("type") String type,
@Param("billNo") String billNo,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByAccountHead(
@Param("type") String type,
@Param("billNo") String billNo,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime);
Long getMaxId();
BigDecimal findAllMoney(
@Param("supplierId") Integer supplierId,
@Param("type") String type,
@Param("modeName") String modeName,
@Param("endTime") String endTime);
List<AccountHeadVo4ListEx> getDetailByNumber(
@Param("billNo") String billNo);
}

View File

@@ -95,20 +95,4 @@ public interface AccountItemMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(AccountItem record); int updateByPrimaryKey(AccountItem record);
List<AccountItem> selectByConditionAccountItem(
@Param("name") String name,
@Param("type") Integer type,
@Param("remark") String remark,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByAccountItem(
@Param("name") String name,
@Param("type") Integer type,
@Param("remark") String remark);
List<AccountItemVo4List> getDetailList(
@Param("headerId") Long headerId);
} }

View File

@@ -0,0 +1,27 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.AccountItem;
import com.jsh.erp.datasource.entities.AccountItemExample;
import com.jsh.erp.datasource.vo.AccountItemVo4List;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface AccountItemMapperEx {
List<AccountItem> selectByConditionAccountItem(
@Param("name") String name,
@Param("type") Integer type,
@Param("remark") String remark,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByAccountItem(
@Param("name") String name,
@Param("type") Integer type,
@Param("remark") String remark);
List<AccountItemVo4List> getDetailList(
@Param("headerId") Long headerId);
}

View File

@@ -96,24 +96,4 @@ public interface AccountMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(Account record); int updateByPrimaryKey(Account record);
List<AccountVo4List> selectByConditionAccount(
@Param("name") String name,
@Param("serialNo") String serialNo,
@Param("remark") String remark,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByAccount(
@Param("name") String name,
@Param("serialNo") String serialNo,
@Param("remark") String remark);
List<AccountVo4InOutList> findAccountInOutList(
@Param("accountId") Long accountId,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int findAccountInOutListCount(
@Param("accountId") Long accountId);
} }

View File

@@ -0,0 +1,32 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Account;
import com.jsh.erp.datasource.entities.AccountExample;
import com.jsh.erp.datasource.vo.AccountVo4InOutList;
import com.jsh.erp.datasource.vo.AccountVo4List;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface AccountMapperEx {
List<AccountVo4List> selectByConditionAccount(
@Param("name") String name,
@Param("serialNo") String serialNo,
@Param("remark") String remark,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByAccount(
@Param("name") String name,
@Param("serialNo") String serialNo,
@Param("remark") String remark);
List<AccountVo4InOutList> findAccountInOutList(
@Param("accountId") Long accountId,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int findAccountInOutListCount(
@Param("accountId") Long accountId);
}

View File

@@ -94,13 +94,4 @@ public interface AppMapper {
*/ */
int updateByPrimaryKey(App record); int updateByPrimaryKey(App record);
List<App> selectByConditionApp(
@Param("name") String name,
@Param("type") String type,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByApp(
@Param("name") String name,
@Param("type") String type);
} }

View File

@@ -0,0 +1,20 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.App;
import com.jsh.erp.datasource.entities.AppExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface AppMapperEx {
List<App> selectByConditionApp(
@Param("name") String name,
@Param("type") String type,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByApp(
@Param("name") String name,
@Param("type") String type);
}

View File

@@ -100,7 +100,4 @@ public interface DepotHeadMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(DepotHead record); int updateByPrimaryKey(DepotHead record);
} }

View File

@@ -95,7 +95,4 @@ public interface DepotItemMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(DepotItem record); int updateByPrimaryKey(DepotItem record);
} }

View File

@@ -93,16 +93,4 @@ public interface DepotMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(Depot record); int updateByPrimaryKey(Depot record);
List<Depot> selectByConditionDepot(
@Param("name") String name,
@Param("type") Integer type,
@Param("remark") String remark,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByDepot(
@Param("name") String name,
@Param("type") Integer type,
@Param("remark") String remark);
} }

View File

@@ -0,0 +1,22 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Depot;
import com.jsh.erp.datasource.entities.DepotExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface DepotMapperEx {
List<Depot> selectByConditionDepot(
@Param("name") String name,
@Param("type") Integer type,
@Param("remark") String remark,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByDepot(
@Param("name") String name,
@Param("type") Integer type,
@Param("remark") String remark);
}

View File

@@ -93,14 +93,4 @@ public interface FunctionsMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(Functions record); int updateByPrimaryKey(Functions record);
List<Functions> selectByConditionFunctions(
@Param("name") String name,
@Param("type") String type,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByFunctions(
@Param("name") String name,
@Param("type") String type);
} }

View File

@@ -0,0 +1,20 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Functions;
import com.jsh.erp.datasource.entities.FunctionsExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface FunctionsMapperEx {
List<Functions> selectByConditionFunctions(
@Param("name") String name,
@Param("type") String type,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByFunctions(
@Param("name") String name,
@Param("type") String type);
}

View File

@@ -93,16 +93,4 @@ public interface InOutItemMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(InOutItem record); int updateByPrimaryKey(InOutItem record);
List<InOutItem> selectByConditionInOutItem(
@Param("name") String name,
@Param("type") String type,
@Param("remark") String remark,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByInOutItem(
@Param("name") String name,
@Param("type") String type,
@Param("remark") String remark);
} }

View File

@@ -0,0 +1,22 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.InOutItem;
import com.jsh.erp.datasource.entities.InOutItemExample;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface InOutItemMapperEx {
List<InOutItem> selectByConditionInOutItem(
@Param("name") String name,
@Param("type") String type,
@Param("remark") String remark,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByInOutItem(
@Param("name") String name,
@Param("type") String type,
@Param("remark") String remark);
}

View File

@@ -95,24 +95,4 @@ public interface LogMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(Log record); int updateByPrimaryKey(Log record);
List<LogVo4List> selectByConditionLog(
@Param("operation") String operation,
@Param("usernameID") Integer usernameID,
@Param("clientIp") String clientIp,
@Param("status") Integer status,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("contentdetails") String contentdetails,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByLog(
@Param("operation") String operation,
@Param("usernameID") Integer usernameID,
@Param("clientIp") String clientIp,
@Param("status") Integer status,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("contentdetails") String contentdetails);
} }

View File

@@ -0,0 +1,31 @@
package com.jsh.erp.datasource.mappers;
import com.jsh.erp.datasource.entities.Log;
import com.jsh.erp.datasource.entities.LogExample;
import com.jsh.erp.datasource.vo.LogVo4List;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface LogMapperEx {
List<LogVo4List> selectByConditionLog(
@Param("operation") String operation,
@Param("usernameID") Integer usernameID,
@Param("clientIp") String clientIp,
@Param("status") Integer status,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("contentdetails") String contentdetails,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByLog(
@Param("operation") String operation,
@Param("usernameID") Integer usernameID,
@Param("clientIp") String clientIp,
@Param("status") Integer status,
@Param("beginTime") String beginTime,
@Param("endTime") String endTime,
@Param("contentdetails") String contentdetails);
}

View File

@@ -93,11 +93,4 @@ public interface MaterialPropertyMapper {
* @mbggenerated * @mbggenerated
*/ */
int updateByPrimaryKey(MaterialProperty record); int updateByPrimaryKey(MaterialProperty record);
List<MaterialProperty> selectByConditionMaterialProperty(
@Param("name") String name,
@Param("offset") Integer offset,
@Param("rows") Integer rows);
int countsByMaterialProperty(@Param("name") String name);
} }

View File

@@ -0,0 +1,17 @@
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);
}

View File

@@ -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);
} }

View File

@@ -0,0 +1,20 @@
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);
}

View File

@@ -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);
} }

View File

@@ -0,0 +1,18 @@
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);
}

View File

@@ -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);
} }

View File

@@ -0,0 +1,33 @@
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);
}

View File

@@ -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();
} }

View File

@@ -0,0 +1,16 @@
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();
}

View File

@@ -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);
} }

View File

@@ -0,0 +1,18 @@
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);
}

View File

@@ -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);
} }

View File

@@ -0,0 +1,20 @@
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);
}

View File

@@ -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 {
@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 {
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 {
} }
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 {
} }
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)

View File

@@ -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 {
@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 {
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 {
} }
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 {
} }
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 {
} 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) {

View File

@@ -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 {
@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 {
} }
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 {
} }
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 {

View File

@@ -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 {
@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 {
} }
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)

View File

@@ -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 {
@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 {
} }
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)

View File

@@ -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 {
@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 {
} }
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)

View File

@@ -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 {
@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 {
} }
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)

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.Log; import com.jsh.erp.datasource.entities.Log;
import com.jsh.erp.datasource.entities.LogExample; import com.jsh.erp.datasource.entities.LogExample;
import com.jsh.erp.datasource.mappers.LogMapper; import com.jsh.erp.datasource.mappers.LogMapper;
import com.jsh.erp.datasource.mappers.LogMapperEx;
import com.jsh.erp.datasource.vo.LogVo4List; import com.jsh.erp.datasource.vo.LogVo4List;
import com.jsh.erp.utils.ExceptionCodeConstants; import com.jsh.erp.utils.ExceptionCodeConstants;
import com.jsh.erp.utils.JshException; import com.jsh.erp.utils.JshException;
@@ -25,6 +26,9 @@ public class LogService {
@Resource @Resource
private LogMapper logMapper; private LogMapper logMapper;
@Resource
private LogMapperEx logMapperEx;
public Log getLog(long id) { public Log getLog(long id) {
return logMapper.selectByPrimaryKey(id); return logMapper.selectByPrimaryKey(id);
} }
@@ -36,13 +40,13 @@ public class LogService {
public List<LogVo4List> select(String operation, Integer usernameID, String clientIp, Integer status, String beginTime, String endTime, public List<LogVo4List> select(String operation, Integer usernameID, String clientIp, Integer status, String beginTime, String endTime,
String contentdetails, int offset, int rows) { String contentdetails, int offset, int rows) {
return logMapper.selectByConditionLog(operation, usernameID, clientIp, status, beginTime, endTime, return logMapperEx.selectByConditionLog(operation, usernameID, clientIp, status, beginTime, endTime,
contentdetails, offset, rows); contentdetails, offset, rows);
} }
public int countLog(String operation, Integer usernameID, String clientIp, Integer status, String beginTime, String endTime, public int countLog(String operation, Integer usernameID, String clientIp, Integer status, String beginTime, String endTime,
String contentdetails) { String contentdetails) {
return logMapper.countsByLog(operation, usernameID, clientIp, status, beginTime, endTime, contentdetails); return logMapperEx.countsByLog(operation, usernameID, clientIp, status, beginTime, endTime, contentdetails);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.MaterialProperty; import com.jsh.erp.datasource.entities.MaterialProperty;
import com.jsh.erp.datasource.entities.MaterialPropertyExample; import com.jsh.erp.datasource.entities.MaterialPropertyExample;
import com.jsh.erp.datasource.mappers.MaterialPropertyMapper; import com.jsh.erp.datasource.mappers.MaterialPropertyMapper;
import com.jsh.erp.datasource.mappers.MaterialPropertyMapperEx;
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 MaterialPropertyService {
@Resource @Resource
private MaterialPropertyMapper materialPropertyMapper; private MaterialPropertyMapper materialPropertyMapper;
@Resource
private MaterialPropertyMapperEx materialPropertyMapperEx;
public MaterialProperty getMaterialProperty(long id) { public MaterialProperty getMaterialProperty(long id) {
return materialPropertyMapper.selectByPrimaryKey(id); return materialPropertyMapper.selectByPrimaryKey(id);
} }
@@ -30,11 +34,11 @@ public class MaterialPropertyService {
return materialPropertyMapper.selectByExample(example); return materialPropertyMapper.selectByExample(example);
} }
public List<MaterialProperty> select(String name, int offset, int rows) { public List<MaterialProperty> select(String name, int offset, int rows) {
return materialPropertyMapper.selectByConditionMaterialProperty(name, offset, rows); return materialPropertyMapperEx.selectByConditionMaterialProperty(name, offset, rows);
} }
public int countMaterialProperty(String name) { public int countMaterialProperty(String name) {
return materialPropertyMapper.countsByMaterialProperty(name); return materialPropertyMapperEx.countsByMaterialProperty(name);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.Person; import com.jsh.erp.datasource.entities.Person;
import com.jsh.erp.datasource.entities.PersonExample; import com.jsh.erp.datasource.entities.PersonExample;
import com.jsh.erp.datasource.mappers.PersonMapper; import com.jsh.erp.datasource.mappers.PersonMapper;
import com.jsh.erp.datasource.mappers.PersonMapperEx;
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 PersonService {
@Resource @Resource
private PersonMapper personMapper; private PersonMapper personMapper;
@Resource
private PersonMapperEx personMapperEx;
public Person getPerson(long id) { public Person getPerson(long id) {
return personMapper.selectByPrimaryKey(id); return personMapper.selectByPrimaryKey(id);
} }
@@ -31,11 +35,11 @@ public class PersonService {
} }
public List<Person> select(String name, String type, int offset, int rows) { public List<Person> select(String name, String type, int offset, int rows) {
return personMapper.selectByConditionPerson(name, type, offset, rows); return personMapperEx.selectByConditionPerson(name, type, offset, rows);
} }
public int countPerson(String name, String type) { public int countPerson(String name, String type) {
return personMapper.countsByPerson(name, type); return personMapperEx.countsByPerson(name, type);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)

View File

@@ -6,6 +6,7 @@ import com.jsh.erp.datasource.entities.RoleExample;
import com.jsh.erp.datasource.entities.User; import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.datasource.entities.UserExample; import com.jsh.erp.datasource.entities.UserExample;
import com.jsh.erp.datasource.mappers.RoleMapper; import com.jsh.erp.datasource.mappers.RoleMapper;
import com.jsh.erp.datasource.mappers.RoleMapperEx;
import com.jsh.erp.datasource.mappers.UserMapper; import com.jsh.erp.datasource.mappers.UserMapper;
import com.jsh.erp.utils.QueryUtils; import com.jsh.erp.utils.QueryUtils;
import com.jsh.erp.utils.RegExpTools; import com.jsh.erp.utils.RegExpTools;
@@ -23,6 +24,9 @@ public class RoleService {
@Resource @Resource
private RoleMapper roleMapper; private RoleMapper roleMapper;
@Resource
private RoleMapperEx roleMapperEx;
public Role getRole(long id) { public Role getRole(long id) {
return roleMapper.selectByPrimaryKey(id); return roleMapper.selectByPrimaryKey(id);
} }
@@ -33,11 +37,11 @@ public class RoleService {
} }
public List<Role> select(String name, int offset, int rows) { public List<Role> select(String name, int offset, int rows) {
return roleMapper.selectByConditionRole(name, offset, rows); return roleMapperEx.selectByConditionRole(name, offset, rows);
} }
public int countRole(String name) { public int countRole(String name) {
return roleMapper.countsByRole(name); return roleMapperEx.countsByRole(name);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.Supplier; import com.jsh.erp.datasource.entities.Supplier;
import com.jsh.erp.datasource.entities.SupplierExample; import com.jsh.erp.datasource.entities.SupplierExample;
import com.jsh.erp.datasource.mappers.SupplierMapper; import com.jsh.erp.datasource.mappers.SupplierMapper;
import com.jsh.erp.datasource.mappers.SupplierMapperEx;
import com.jsh.erp.utils.BaseResponseInfo; import com.jsh.erp.utils.BaseResponseInfo;
import com.jsh.erp.utils.StringUtil; import com.jsh.erp.utils.StringUtil;
import org.slf4j.Logger; import org.slf4j.Logger;
@@ -25,6 +26,9 @@ public class SupplierService {
@Resource @Resource
private SupplierMapper supplierMapper; private SupplierMapper supplierMapper;
@Resource
private SupplierMapperEx supplierMapperEx;
public Supplier getSupplier(long id) { public Supplier getSupplier(long id) {
return supplierMapper.selectByPrimaryKey(id); return supplierMapper.selectByPrimaryKey(id);
} }
@@ -35,11 +39,11 @@ public class SupplierService {
} }
public List<Supplier> select(String supplier, String type, String phonenum, String telephone, String description, int offset, int rows) { public List<Supplier> select(String supplier, String type, String phonenum, String telephone, String description, int offset, int rows) {
return supplierMapper.selectByConditionSupplier(supplier, type, phonenum, telephone, description, offset, rows); return supplierMapperEx.selectByConditionSupplier(supplier, type, phonenum, telephone, description, offset, rows);
} }
public int countSupplier(String supplier, String type, String phonenum, String telephone, String description) { public int countSupplier(String supplier, String type, String phonenum, String telephone, String description) {
return supplierMapper.countsBySupplier(supplier, type, phonenum, telephone, description); return supplierMapperEx.countsBySupplier(supplier, type, phonenum, telephone, description);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)
@@ -134,7 +138,7 @@ public class SupplierService {
} }
public List<Supplier> findByAll(String supplier, String type, String phonenum, String telephone, String description) { public List<Supplier> findByAll(String supplier, String type, String phonenum, String telephone, String description) {
return supplierMapper.findByAll(supplier, type, phonenum, telephone, description); return supplierMapperEx.findByAll(supplier, type, phonenum, telephone, description);
} }
public BaseResponseInfo importExcel(List<Supplier> mList) throws Exception { public BaseResponseInfo importExcel(List<Supplier> mList) throws Exception {

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.SystemConfig; import com.jsh.erp.datasource.entities.SystemConfig;
import com.jsh.erp.datasource.entities.SystemConfigExample; import com.jsh.erp.datasource.entities.SystemConfigExample;
import com.jsh.erp.datasource.mappers.SystemConfigMapper; import com.jsh.erp.datasource.mappers.SystemConfigMapper;
import com.jsh.erp.datasource.mappers.SystemConfigMapperEx;
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 SystemConfigService {
@Resource @Resource
private SystemConfigMapper systemConfigMapper; private SystemConfigMapper systemConfigMapper;
@Resource
private SystemConfigMapperEx systemConfigMapperEx;
public SystemConfig getSystemConfig(long id) { public SystemConfig getSystemConfig(long id) {
return systemConfigMapper.selectByPrimaryKey(id); return systemConfigMapper.selectByPrimaryKey(id);
} }
@@ -30,11 +34,11 @@ public class SystemConfigService {
return systemConfigMapper.selectByExample(example); return systemConfigMapper.selectByExample(example);
} }
public List<SystemConfig> select(int offset, int rows) { public List<SystemConfig> select(int offset, int rows) {
return systemConfigMapper.selectByConditionSystemConfig(offset, rows); return systemConfigMapperEx.selectByConditionSystemConfig(offset, rows);
} }
public int countSystemConfig() { public int countSystemConfig() {
return systemConfigMapper.countsBySystemConfig(); return systemConfigMapperEx.countsBySystemConfig();
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.Unit; import com.jsh.erp.datasource.entities.Unit;
import com.jsh.erp.datasource.entities.UnitExample; import com.jsh.erp.datasource.entities.UnitExample;
import com.jsh.erp.datasource.mappers.UnitMapper; import com.jsh.erp.datasource.mappers.UnitMapper;
import com.jsh.erp.datasource.mappers.UnitMapperEx;
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 UnitService {
@Resource @Resource
private UnitMapper unitMapper; private UnitMapper unitMapper;
@Resource
private UnitMapperEx unitMapperEx;
public Unit getUnit(long id) { public Unit getUnit(long id) {
return unitMapper.selectByPrimaryKey(id); return unitMapper.selectByPrimaryKey(id);
} }
@@ -31,11 +35,11 @@ public class UnitService {
} }
public List<Unit> select(String name, int offset, int rows) { public List<Unit> select(String name, int offset, int rows) {
return unitMapper.selectByConditionUnit(name, offset, rows); return unitMapperEx.selectByConditionUnit(name, offset, rows);
} }
public int countUnit(String name) { public int countUnit(String name) {
return unitMapper.countsByUnit(name); return unitMapperEx.countsByUnit(name);
} }
@Transactional(value = "transactionManager", rollbackFor = Exception.class) @Transactional(value = "transactionManager", rollbackFor = Exception.class)

View File

@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
import com.jsh.erp.datasource.entities.User; import com.jsh.erp.datasource.entities.User;
import com.jsh.erp.datasource.entities.UserExample; import com.jsh.erp.datasource.entities.UserExample;
import com.jsh.erp.datasource.mappers.UserMapper; import com.jsh.erp.datasource.mappers.UserMapper;
import com.jsh.erp.datasource.mappers.UserMapperEx;
import com.jsh.erp.utils.*; import com.jsh.erp.utils.*;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@@ -26,6 +27,9 @@ public class UserService {
@Resource @Resource
private UserMapper userMapper; private UserMapper userMapper;
@Resource
private UserMapperEx userMapperEx;
public User getUser(long id) { public User getUser(long id) {
return userMapper.selectByPrimaryKey(id); return userMapper.selectByPrimaryKey(id);
} }
@@ -36,11 +40,11 @@ public class UserService {
} }
public List<User> select(String userName, String loginName, int offset, int rows) { public List<User> select(String userName, String loginName, int offset, int rows) {
return userMapper.selectByConditionUser(userName, loginName, offset, rows); return userMapperEx.selectByConditionUser(userName, loginName, offset, rows);
} }
public int countUser(String userName, String loginName) { public int countUser(String userName, String loginName) {
return userMapper.countsByUser(userName, loginName); return userMapperEx.countsByUser(userName, loginName);
} }
/** /**
* create by: cjl * create by: cjl