增加公共service
This commit is contained in:
parent
807c929ef8
commit
461661ea5f
|
@ -0,0 +1,13 @@
|
||||||
|
package com.hzya.frame.seeyon.ydc.dao;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.IBaseDao;
|
||||||
|
import com.hzya.frame.seeyon.ydc.entity.Formmain0225Entity;
|
||||||
|
import com.hzya.frame.seeyon.ydc.entity.FormmainEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 公用
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/7/9 14:29
|
||||||
|
**/
|
||||||
|
public interface IFormmainDao extends IBaseDao<FormmainEntity, String> {
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
package com.hzya.frame.seeyon.ydc.dao.impl;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.dao.MybatisGenericDao;
|
||||||
|
import com.hzya.frame.seeyon.ydc.dao.IFormmain0225Dao;
|
||||||
|
import com.hzya.frame.seeyon.ydc.dao.IFormmainDao;
|
||||||
|
import com.hzya.frame.seeyon.ydc.entity.Formmain0225Entity;
|
||||||
|
import com.hzya.frame.seeyon.ydc.entity.FormmainEntity;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/7/9 14:29
|
||||||
|
**/
|
||||||
|
@Repository(value = "FormmainDaoImpl")
|
||||||
|
public class FormmainDaoImpl extends MybatisGenericDao<FormmainEntity, String> implements IFormmainDao {
|
||||||
|
}
|
|
@ -0,0 +1,66 @@
|
||||||
|
package com.hzya.frame.seeyon.ydc.entity;
|
||||||
|
|
||||||
|
import com.hzya.frame.web.entity.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 公用
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/7/9 14:25
|
||||||
|
**/
|
||||||
|
public class FormmainEntity extends BaseEntity {
|
||||||
|
|
||||||
|
private String field0001;
|
||||||
|
private String field0002;
|
||||||
|
private String field0003;
|
||||||
|
private String field0009;
|
||||||
|
private String field0014;
|
||||||
|
private String field0024;
|
||||||
|
|
||||||
|
public String getField0001() {
|
||||||
|
return field0001;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setField0001(String field0001) {
|
||||||
|
this.field0001 = field0001;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getField0002() {
|
||||||
|
return field0002;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setField0002(String field0002) {
|
||||||
|
this.field0002 = field0002;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getField0003() {
|
||||||
|
return field0003;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setField0003(String field0003) {
|
||||||
|
this.field0003 = field0003;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getField0009() {
|
||||||
|
return field0009;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setField0009(String field0009) {
|
||||||
|
this.field0009 = field0009;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getField0014() {
|
||||||
|
return field0014;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setField0014(String field0014) {
|
||||||
|
this.field0014 = field0014;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getField0024() {
|
||||||
|
return field0024;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setField0024(String field0024) {
|
||||||
|
this.field0024 = field0024;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- 供应商底表 -->
|
||||||
|
<update id="entity_update_0229" parameterType = "com.hzya.frame.seeyon.ydc.entity.FormmainEntity" >
|
||||||
|
update formmain_0229 set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="field0002 != null and field0002 != ''"> field0002 = #{field0002}</if>
|
||||||
|
</trim>
|
||||||
|
where field0001 = #{field0001}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!-- 客户底表 -->
|
||||||
|
<update id="entity_update_0230" parameterType = "com.hzya.frame.seeyon.ydc.entity.FormmainEntity" >
|
||||||
|
update formmain_0230 set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="field0002 != null and field0002 != ''"> field0002 = #{field0002}</if>
|
||||||
|
</trim>
|
||||||
|
where field0001 = #{field0001}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<!-- 存货底表 -->
|
||||||
|
<update id="entity_update_0231" parameterType = "com.hzya.frame.seeyon.ydc.entity.FormmainEntity" >
|
||||||
|
update formmain_0231 set
|
||||||
|
<trim suffix="" suffixOverrides=",">
|
||||||
|
<if test="field0014 != null and field0014 != ''"> field0014 = #{field0014}</if>
|
||||||
|
</trim>
|
||||||
|
where field0009 = #{field0009} and field0024 = #{field0024}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
</mapper>
|
||||||
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
package com.hzya.frame.seeyon.ydc.service;
|
||||||
|
|
||||||
|
import com.hzya.frame.basedao.service.IBaseService;
|
||||||
|
import com.hzya.frame.seeyon.ydc.entity.FormmainEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/7/9 14:30
|
||||||
|
**/
|
||||||
|
public interface IFormmainService extends IBaseService<FormmainEntity, String> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新供应商档案编码
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
void updateSupplierCode(FormmainEntity entity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新客户档案编码
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
void updateCustomerCode(FormmainEntity entity);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新存货档案编码
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
void updateInventoryCode(FormmainEntity entity);
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package com.hzya.frame.seeyon.ydc.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.hzya.frame.basedao.service.impl.BaseService;
|
||||||
|
import com.hzya.frame.seeyon.ydc.dao.IFormmainDao;
|
||||||
|
import com.hzya.frame.seeyon.ydc.entity.Formmain0225Entity;
|
||||||
|
import com.hzya.frame.seeyon.ydc.entity.FormmainEntity;
|
||||||
|
import com.hzya.frame.seeyon.ydc.service.IFormmain0225Service;
|
||||||
|
import com.hzya.frame.seeyon.ydc.service.IFormmainService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description
|
||||||
|
* @Author xiangerlin
|
||||||
|
* @Date 2024/7/9 14:30
|
||||||
|
**/
|
||||||
|
@Service()
|
||||||
|
public class FormmainServiceImpl extends BaseService<FormmainEntity, String> implements IFormmainService {
|
||||||
|
|
||||||
|
private IFormmainDao formmainDao;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
public void setFormmainDao(IFormmainDao dao) {
|
||||||
|
this.formmainDao = dao;
|
||||||
|
this.dao = dao;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新供应商档案编码
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public void updateSupplierCode(FormmainEntity entity) {
|
||||||
|
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0229",entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新客户档案编码
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public void updateCustomerCode(FormmainEntity entity) {
|
||||||
|
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0230",entity);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新存货档案编码
|
||||||
|
*
|
||||||
|
* @param entity
|
||||||
|
*/
|
||||||
|
@DS("#entity.dataSourceCode")
|
||||||
|
@Override
|
||||||
|
public void updateInventoryCode(FormmainEntity entity) {
|
||||||
|
formmainDao.update("com.hzya.frame.seeyon.ydc.dao.impl.FormmainDaoImpl.entity_update_0231",entity);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue