Commit 0b5a985d authored by 鲁鑫's avatar 鲁鑫

SAP成本中心

parent d651b5e7
package com.huigou.topsun.sap.costCenter.application;
/**
* @Auther: xin.lu
* @Date: 2023/12/13/11:09
* @Description:
*/
public interface CostCenterApplication {
}
package com.huigou.topsun.sap.costCenter.application.impl;
import com.huigou.topsun.sap.costCenter.application.CostCenterApplication;
import com.huigou.uasp.bmp.common.application.BaseApplication;
/**
* @Auther: xin.lu
* @Date: 2023/12/13/11:09
* @Description:
*/
public class CostCenterApplicationImpl extends BaseApplication implements CostCenterApplication {
}
package com.huigou.topsun.sap.costCenter.controller;
import com.huigou.uasp.annotation.ControllerMapping;
import com.huigou.uasp.client.CommonController;
import org.springframework.stereotype.Controller;
/**
* @Auther: xin.lu
* @Date: 2023/12/13/11:36
* @Description:
*/
@Controller
@ControllerMapping("/sapCostCenter")
public class CostCenterController extends CommonController {
@Override
protected String getPagePath(){
return "/biz/topsun/sap/costCenter";
}
/**
* 跳转到成本中心查询列表
* @return
*/
public String forwardSapCostCenterList(){
return forward("sapCostCenterList");
}
}
package com.huigou.topsun.sap.costCenter.domain;
import com.baomidou.mybatisplus.annotation.TableName;
import com.huigou.data.domain.model.AbstractEntity;
import com.topsunit.query.annotations.Dictionary;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;
/**
* @Auther: xin.lu
* @Date: 2023/12/13/10:42
* @Description:
*/
@TableName("cost_center")
@Entity
@Data
public class CostCenter extends AbstractEntity {
/**
* 成本中心编码
*/
@Column(name = "KOSTL")
private String KOSTL;
/**
* 有效期自 默认当年1月1日
*/
@Column(name = "DATAB")
private Date DATAB;
/**
* 有效截至日 默认9999.12.31
*/
@Column(name = "DATBI")
private Date DATBI;
/**
* 名称
*/
@Column(name = "KTEXT")
private String KTEXT;
/**
* 描述
*/
@Column(name = "LTEXT")
private String LTEXT;
/**
* 负责人
*/
@Column(name = "VERAK")
private String VERAK;
/**
* 成本中心类型
* 管理类 L
* 销售类 V
* 研发类 E
* 间接生产类 G
* 直接生产类 F
*/
@Column(name = "KOSAR")
@Dictionary("KOSAR")
private String KOSAR;
/**
* 利润中心
* 10001000 广州宝绅科技利润中心
* 10001001 广州宝绅RFID利润中心
*/
@Column(name = "PRCTR")
@Dictionary("PRCTR")
private String PRCTR;
//创建原因 CHAR 100 手工输入
}
package com.huigou.topsun.sap.costCenter.repository;
import com.huigou.topsun.sap.costCenter.domain.CostCenter;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* @Auther: xin.lu
* @Date: 2023/12/13/11:08
* @Description:
*/
public interface CostCenterRepository extends JpaRepository<CostCenter,String> {
}
Markdown is supported
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